Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 DEVICE_COMMON_DEVICE_CLIENT_H_ | |
| 6 #define DEVICE_COMMON_DEVICE_CLIENT_H_ | |
| 7 | |
| 8 namespace usb_service { | |
| 9 class UsbService; | |
| 10 } | |
| 11 | |
| 12 namespace device { | |
| 13 | |
| 14 // Interface used by consumers of //device APIs to get pointers to the service | |
| 15 // singletons appropriate for a given embedding application. For an example see | |
| 16 // //chrome/browser/chrome_device_client.h. | |
| 17 class DeviceClient { | |
| 18 public: | |
| 19 // Construction sets the singlse instance. | |
|
Lei Zhang
2014/08/28 18:44:57
typo?
| |
| 20 DeviceClient(); | |
| 21 | |
| 22 // Destruction clears the single instance. | |
| 23 ~DeviceClient(); | |
| 24 | |
| 25 // Returns the single instance of |this|. | |
| 26 static DeviceClient* Get(); | |
| 27 | |
| 28 // Returns the UsbService instance for this embedder. | |
| 29 virtual usb_service::UsbService* GetUsbService(); | |
| 30 }; | |
| 31 | |
| 32 } // namespace device | |
| 33 | |
| 34 #endif // DEVICE_COMMON_DEVICE_CLIENT_H_ | |
| OLD | NEW |