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 EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_ |
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_BROWSER_SHELL_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 | 13 |
13 namespace extensions { | 14 namespace extensions { |
14 | 15 |
15 // Implementation of device::DeviceClient that returns //device API service | 16 // Implementation of device::DeviceClient that returns //device API service |
16 // singletons appropriate for use within app shell. | 17 // singletons appropriate for use within app shell. |
17 class ShellDeviceClient : device::DeviceClient { | 18 class ShellDeviceClient : device::DeviceClient { |
18 public: | 19 public: |
19 ShellDeviceClient(); | 20 ShellDeviceClient(); |
20 ~ShellDeviceClient() override; | 21 ~ShellDeviceClient() override; |
21 | 22 |
22 // device::DeviceClient implementation | 23 // device::DeviceClient implementation |
23 device::UsbService* GetUsbService() override; | 24 device::UsbService* GetUsbService() override; |
24 device::HidService* GetHidService() override; | 25 device::HidService* GetHidService() override; |
25 | 26 |
26 private: | 27 private: |
| 28 scoped_ptr<device::UsbService> usb_service_; |
| 29 |
27 DISALLOW_COPY_AND_ASSIGN(ShellDeviceClient); | 30 DISALLOW_COPY_AND_ASSIGN(ShellDeviceClient); |
28 }; | 31 }; |
29 | 32 |
30 } | 33 } |
31 | 34 |
32 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_ | 35 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_ |
OLD | NEW |