| OLD | NEW |
| 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_FAKE_PERMISSION_PROVIDER_H_ | 5 #ifndef DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_ |
| 6 #define DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_ | 6 #define DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_ |
| 7 | 7 |
| 8 #include "device/devices_app/usb/public/interfaces/permission_provider.mojom.h" | 8 #include "device/devices_app/usb/public/interfaces/permission_provider.mojom.h" |
| 9 #include "mojo/common/weak_binding_set.h" | 9 #include "mojo/common/weak_binding_set.h" |
| 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/array.h" | 10 #include "mojo/public/cpp/bindings/array.h" |
| 11 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" | 11 #include "mojo/public/cpp/bindings/interface_request.h" |
| 12 | 12 |
| 13 namespace device { | 13 namespace device { |
| 14 namespace usb { | 14 namespace usb { |
| 15 | 15 |
| 16 class FakePermissionProvider : public PermissionProvider { | 16 class FakePermissionProvider : public PermissionProvider { |
| 17 public: | 17 public: |
| 18 FakePermissionProvider(); | 18 FakePermissionProvider(); |
| 19 ~FakePermissionProvider() override; | 19 ~FakePermissionProvider() override; |
| 20 | 20 |
| 21 void HasDevicePermission( | 21 void HasDevicePermission( |
| (...skipping 11 matching lines...) Expand all Loading... |
| 33 void Bind(mojo::InterfaceRequest<PermissionProvider> request) override; | 33 void Bind(mojo::InterfaceRequest<PermissionProvider> request) override; |
| 34 | 34 |
| 35 private: | 35 private: |
| 36 mojo::WeakBindingSet<PermissionProvider> bindings_; | 36 mojo::WeakBindingSet<PermissionProvider> bindings_; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 } // namespace usb | 39 } // namespace usb |
| 40 } // namespace device | 40 } // namespace device |
| 41 | 41 |
| 42 #endif // DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_ | 42 #endif // DEVICE_USB_FAKE_PERMISSION_PROVIDER_H_ |
| OLD | NEW |