OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium 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 DEVICE_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_ | |
6 #define DEVICE_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_ | |
7 | |
8 #include "base/memory/ref_counted.h" | |
9 #include "base/sequenced_task_runner.h" | |
Reilly Grant (use Gerrit)
2015/05/27 21:00:53
The two headers above are unnecessary.
Ken Rockot(use gerrit already)
2015/05/27 22:35:03
Good catch. They were used once upon a time, I swe
| |
10 #include "device/usb/public/interfaces/device.mojom.h" | |
11 | |
12 namespace device { | |
13 namespace usb { | |
14 | |
15 // Interface used by DeviceManager instances to delegate certain decisions and | |
16 // behaviors out to their embedder. | |
17 class DeviceManagerDelegate { | |
18 public: | |
19 virtual ~DeviceManagerDelegate() {} | |
20 | |
21 // Determines whether a given device should be accessible to clients of the | |
22 // DeviceManager instance. | |
23 virtual bool IsDeviceAllowed(const DeviceInfo& info) = 0; | |
24 }; | |
25 | |
26 } // namespace usb | |
27 } // namespace device | |
28 | |
29 #endif // DEVICE_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_ | |
OLD | NEW |