Ben Chan | 89cf29e | 2011-08-10 13:11:05 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CROS_DISKS_DEVICE_EVENT_DISPATCHER_INTERFACE_H_ |
| 6 | #define CROS_DISKS_DEVICE_EVENT_DISPATCHER_INTERFACE_H_ |
| 7 | |
Ben Chan | 89cf29e | 2011-08-10 13:11:05 -0700 | [diff] [blame] | 8 | namespace cros_disks { |
| 9 | |
Ben Chan | 2a5ea75 | 2011-12-21 09:48:19 -0800 | [diff] [blame] | 10 | struct DeviceEvent; |
Ben Chan | 89cf29e | 2011-08-10 13:11:05 -0700 | [diff] [blame] | 11 | |
| 12 | // An interface class for dispatching device events. |
| 13 | class DeviceEventDispatcherInterface { |
| 14 | public: |
Ben Chan | 40ecb9b | 2017-03-08 11:26:07 -0800 | [diff] [blame] | 15 | virtual ~DeviceEventDispatcherInterface() = default; |
Ben Chan | 89cf29e | 2011-08-10 13:11:05 -0700 | [diff] [blame] | 16 | |
| 17 | // Implemented by a derived class to dispatch a device event. |
| 18 | virtual void DispatchDeviceEvent(const DeviceEvent& event) = 0; |
| 19 | }; |
| 20 | |
| 21 | } // namespace cros_disks |
| 22 | |
| 23 | #endif // CROS_DISKS_DEVICE_EVENT_DISPATCHER_INTERFACE_H_ |