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