diff options
| author | reillyg <reillyg@chromium.org> | 2016-02-10 15:29:20 -0800 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2016-02-10 23:31:02 +0000 |
| commit | 64c8f4f25d9fbd2233e476d6276b4c63bcc4813c (patch) | |
| tree | 6b493ace49c49e995601c33d9ef14a94ccfe2f85 /device/devices_app/usb/fake_permission_provider.h | |
| parent | d1a4b660eb29113ef2a08f8544ebf1f2b212e6ec (diff) | |
| download | chromium_src-64c8f4f25d9fbd2233e476d6276b4c63bcc4813c.zip chromium_src-64c8f4f25d9fbd2233e476d6276b4c63bcc4813c.tar.gz chromium_src-64c8f4f25d9fbd2233e476d6276b4c63bcc4813c.tar.bz2 | |
Remove //device/devices_app.
This change removes the code to create a Mojo app containing device
services (currently only USB) and instead makes the Mojo bindings for
//device/usb part of that directory.
The Mojo service implementation is still in a separate //device/usb/mojo
target but this will eventually merge into its parent directory as the
Mojo interface becomes the only public interface for //device/usb.
BUG=None
Review URL: https://codereview.chromium.org/1682363002
Cr-Commit-Position: refs/heads/master@{#374778}
Diffstat (limited to 'device/devices_app/usb/fake_permission_provider.h')
| -rw-r--r-- | device/devices_app/usb/fake_permission_provider.h | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/device/devices_app/usb/fake_permission_provider.h b/device/devices_app/usb/fake_permission_provider.h deleted file mode 100644 index 62947b4..0000000 --- a/device/devices_app/usb/fake_permission_provider.h +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright 2015 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -#ifndef DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_ -#define DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_ - -#include <stdint.h> - -#include "device/devices_app/usb/public/interfaces/permission_provider.mojom.h" -#include "mojo/common/weak_binding_set.h" -#include "mojo/public/cpp/bindings/array.h" -#include "mojo/public/cpp/bindings/interface_request.h" - -namespace device { -namespace usb { - -class FakePermissionProvider : public PermissionProvider { - public: - FakePermissionProvider(); - ~FakePermissionProvider() override; - - void HasDevicePermission( - mojo::Array<DeviceInfoPtr> requested_devices, - const HasDevicePermissionCallback& callback) override; - void HasConfigurationPermission( - uint8_t requested_configuration, - device::usb::DeviceInfoPtr device, - const HasInterfacePermissionCallback& callback) override; - void HasInterfacePermission( - uint8_t requested_interface, - uint8_t configuration_value, - device::usb::DeviceInfoPtr device, - const HasInterfacePermissionCallback& callback) override; - void Bind(mojo::InterfaceRequest<PermissionProvider> request) override; - - private: - mojo::WeakBindingSet<PermissionProvider> bindings_; -}; - -} // namespace usb -} // namespace device - -#endif // DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_ |
