| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CORE_DEVICE_CLIENT_H_ | 5 #ifndef DEVICE_CORE_DEVICE_CLIENT_H_ |
| 6 #define DEVICE_CORE_DEVICE_CLIENT_H_ | 6 #define DEVICE_CORE_DEVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" | 9 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h" |
| 10 | 10 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // Destruction clears the single instance. | 28 // Destruction clears the single instance. |
| 29 virtual ~DeviceClient(); | 29 virtual ~DeviceClient(); |
| 30 | 30 |
| 31 // Returns the single instance of |this|. | 31 // Returns the single instance of |this|. |
| 32 static DeviceClient* Get(); | 32 static DeviceClient* Get(); |
| 33 | 33 |
| 34 // Returns the UsbService instance for this embedder. | 34 // Returns the UsbService instance for this embedder. |
| 35 virtual UsbService* GetUsbService(); | 35 virtual UsbService* GetUsbService(); |
| 36 | 36 |
| 37 // Connects a USB DeviceManager client to a concrete implementation. If |
| 38 // no such implementation is available the request is dropped. |
| 39 virtual void ConnectToUSBDeviceManager( |
| 40 mojo::InterfaceRequest<usb::DeviceManager> request); |
| 41 |
| 37 // Returns the HidService instance for this embedder. | 42 // Returns the HidService instance for this embedder. |
| 38 virtual HidService* GetHidService(); | 43 virtual HidService* GetHidService(); |
| 39 | 44 |
| 40 private: | 45 private: |
| 41 DISALLOW_COPY_AND_ASSIGN(DeviceClient); | 46 DISALLOW_COPY_AND_ASSIGN(DeviceClient); |
| 42 }; | 47 }; |
| 43 | 48 |
| 44 } // namespace device | 49 } // namespace device |
| 45 | 50 |
| 46 #endif // DEVICE_CORE_DEVICE_CLIENT_H_ | 51 #endif // DEVICE_CORE_DEVICE_CLIENT_H_ |
| OLD | NEW |