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 | |
| 8 | #include <base/basictypes.h> |
| 9 | |
| 10 | namespace cros_disks { |
| 11 | |
Ben Chan | 2a5ea75 | 2011-12-21 09:48:19 -0800 | [diff] [blame^] | 12 | struct DeviceEvent; |
Ben Chan | 89cf29e | 2011-08-10 13:11:05 -0700 | [diff] [blame] | 13 | |
| 14 | // An interface class for dispatching device events. |
| 15 | class DeviceEventDispatcherInterface { |
| 16 | public: |
| 17 | virtual ~DeviceEventDispatcherInterface() {} |
| 18 | |
| 19 | // Implemented by a derived class to dispatch a device event. |
| 20 | virtual void DispatchDeviceEvent(const DeviceEvent& event) = 0; |
| 21 | }; |
| 22 | |
| 23 | } // namespace cros_disks |
| 24 | |
| 25 | #endif // CROS_DISKS_DEVICE_EVENT_DISPATCHER_INTERFACE_H_ |