reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 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 |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ |
| 6 | #define CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ |
| 7 | |
alexis.menard | 2fe63eaa | 2016-10-13 21:42:43 | [diff] [blame] | 8 | #include "device/base/device_client.h" |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 9 | |
dcheng | 4af4858 | 2016-04-19 00:29:35 | [diff] [blame] | 10 | #include <memory> |
| 11 | |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 12 | #include "base/macros.h" |
Bernhard Bauer | 0169933 | 2017-09-21 17:10:24 | [diff] [blame] | 13 | #include "build/build_config.h" |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 14 | |
| 15 | // Implementation of device::DeviceClient that returns //device service |
| 16 | // singletons appropriate for use within the Chrome application. |
| 17 | class ChromeDeviceClient : device::DeviceClient { |
| 18 | public: |
| 19 | ChromeDeviceClient(); |
rockot | 8fcc275 | 2015-05-28 02:07:55 | [diff] [blame] | 20 | ~ChromeDeviceClient() override; |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 21 | |
| 22 | // device::DeviceClient implementation |
Daniel Cheng | a542fca | 2014-10-21 09:51:29 | [diff] [blame] | 23 | device::UsbService* GetUsbService() override; |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 24 | |
| 25 | private: |
dcheng | 4af4858 | 2016-04-19 00:29:35 | [diff] [blame] | 26 | std::unique_ptr<device::UsbService> usb_service_; |
reillyg | badbc541 | 2015-08-28 23:08:10 | [diff] [blame] | 27 | |
reillyg | e471fab | 2014-08-29 01:58:43 | [diff] [blame] | 28 | DISALLOW_COPY_AND_ASSIGN(ChromeDeviceClient); |
| 29 | }; |
| 30 | |
| 31 | #endif // CHROME_BROWSER_CHROME_DEVICE_CLIENT_H_ |