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.
5 #ifndef DEVICE_DEVICES_APP_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_
6 #define DEVICE_DEVICES_APP_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_
8 #include "device/devices_app/usb/public/interfaces/device.mojom.h"
13 // Interface used by DeviceManager instances to delegate certain decisions and
14 // behaviors out to their embedder.
15 class DeviceManagerDelegate
{
17 virtual ~DeviceManagerDelegate() {}
19 // Determines whether a given device should be accessible to clients of the
20 // DeviceManager instance.
21 virtual bool IsDeviceAllowed(const DeviceInfo
& info
) = 0;
27 #endif // DEVICE_DEVICES_APP_USB_PUBLIC_CPP_DEVICE_MANAGER_DELEGATE_H_