blob: 7b1414ba35763b886e5a8f51a9f5d0d92e4e5e62 [file] [log] [blame]
Ben Chan89cf29e2011-08-10 13:11:05 -07001// 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
10namespace cros_disks {
11
Ben Chan2a5ea752011-12-21 09:48:19 -080012struct DeviceEvent;
Ben Chan89cf29e2011-08-10 13:11:05 -070013
14// An interface class for dispatching device events.
15class 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_