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