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 CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include "device/core/device_client.h" | 8 #include "device/base/device_client.h" |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 | 14 |
15 // Implementation of device::DeviceClient that returns //device service | 15 // Implementation of device::DeviceClient that returns //device service |
16 // singletons appropriate for use within the Chrome application. | 16 // singletons appropriate for use within the Chrome application. |
17 class ChromeDeviceClient : device::DeviceClient { | 17 class ChromeDeviceClient : device::DeviceClient { |
18 public: | 18 public: |
19 ChromeDeviceClient(); | 19 ChromeDeviceClient(); |
20 ~ChromeDeviceClient() override; | 20 ~ChromeDeviceClient() override; |
21 | 21 |
22 // device::DeviceClient implementation | 22 // device::DeviceClient implementation |
23 device::UsbService* GetUsbService() override; | 23 device::UsbService* GetUsbService() override; |
24 device::HidService* GetHidService() override; | 24 device::HidService* GetHidService() override; |
25 | 25 |
26 private: | 26 private: |
27 std::unique_ptr<device::HidService> hid_service_; | 27 std::unique_ptr<device::HidService> hid_service_; |
28 std::unique_ptr<device::UsbService> usb_service_; | 28 std::unique_ptr<device::UsbService> usb_service_; |
29 | 29 |
30 DISALLOW_COPY_AND_ASSIGN(ChromeDeviceClient); | 30 DISALLOW_COPY_AND_ASSIGN(ChromeDeviceClient); |
31 }; | 31 }; |
32 | 32 |
33 #endif // CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ | 33 #endif // CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ |
OLD | NEW |