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_BASE_DEVICE_CLIENT_H_ |
6 #define DEVICE_CORE_DEVICE_CLIENT_H_ | 6 #define DEVICE_BASE_DEVICE_CLIENT_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "device/core/device_core_export.h" | 9 #include "device/base/device_base_export.h" |
10 | 10 |
11 namespace device { | 11 namespace device { |
12 | 12 |
13 class HidService; | 13 class HidService; |
14 class UsbService; | 14 class UsbService; |
15 | 15 |
16 // Interface used by consumers of //device APIs to get pointers to the service | 16 // Interface used by consumers of //device APIs to get pointers to the service |
17 // singletons appropriate for a given embedding application. For an example see | 17 // singletons appropriate for a given embedding application. For an example see |
18 // //chrome/browser/chrome_device_client.h. | 18 // //chrome/browser/chrome_device_client.h. |
19 class DEVICE_CORE_EXPORT DeviceClient { | 19 class DEVICE_BASE_EXPORT DeviceClient { |
20 public: | 20 public: |
21 // Construction sets the single instance. | 21 // Construction sets the single instance. |
22 DeviceClient(); | 22 DeviceClient(); |
23 | 23 |
24 // Destruction clears the single instance. | 24 // Destruction clears the single instance. |
25 virtual ~DeviceClient(); | 25 virtual ~DeviceClient(); |
26 | 26 |
27 // Returns the single instance of |this|. | 27 // Returns the single instance of |this|. |
28 static DeviceClient* Get(); | 28 static DeviceClient* Get(); |
29 | 29 |
30 // Returns the UsbService instance for this embedder. | 30 // Returns the UsbService instance for this embedder. |
31 virtual UsbService* GetUsbService(); | 31 virtual UsbService* GetUsbService(); |
32 | 32 |
33 // Returns the HidService instance for this embedder. | 33 // Returns the HidService instance for this embedder. |
34 virtual HidService* GetHidService(); | 34 virtual HidService* GetHidService(); |
35 | 35 |
36 private: | 36 private: |
37 DISALLOW_COPY_AND_ASSIGN(DeviceClient); | 37 DISALLOW_COPY_AND_ASSIGN(DeviceClient); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace device | 40 } // namespace device |
41 | 41 |
42 #endif // DEVICE_CORE_DEVICE_CLIENT_H_ | 42 #endif // DEVICE_BASE_DEVICE_CLIENT_H_ |
OLD | NEW |