Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(440)

Side by Side Diff: device/devices_app/usb/public/cpp/device_manager_delegate.h

Issue 1165223004: Introduce the devices Mojo app (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move mojo USB sources into devices_app to keep mojo dependencies separated from device/usb Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_ 5 #ifndef DEVICE_DEVICES_APP_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_
6 #define DEVICE_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_ 6 #define DEVICE_DEVICES_APP_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_
7 7
8 #include "device/usb/public/interfaces/device.mojom.h" 8 #include "device/devices_app/usb/public/interfaces/device.mojom.h"
9 9
10 namespace device { 10 namespace device {
11 namespace usb { 11 namespace usb {
12 12
13 // Interface used by DeviceManager instances to delegate certain decisions and 13 // Interface used by DeviceManager instances to delegate certain decisions and
14 // behaviors out to their embedder. 14 // behaviors out to their embedder.
15 class DeviceManagerDelegate { 15 class DeviceManagerDelegate {
16 public: 16 public:
17 virtual ~DeviceManagerDelegate() {} 17 virtual ~DeviceManagerDelegate() {}
18 18
19 // Determines whether a given device should be accessible to clients of the 19 // Determines whether a given device should be accessible to clients of the
20 // DeviceManager instance. 20 // DeviceManager instance.
21 virtual bool IsDeviceAllowed(const DeviceInfo& info) = 0; 21 virtual bool IsDeviceAllowed(const DeviceInfo& info) = 0;
22 }; 22 };
23 23
24 } // namespace usb 24 } // namespace usb
25 } // namespace device 25 } // namespace device
26 26
27 #endif // DEVICE_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_ 27 #endif // DEVICE_DEVICES_APP_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « device/devices_app/usb/public/cpp/BUILD.gn ('k') | device/devices_app/usb/public/interfaces/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698