| Index: device/core/device_client.h
|
| diff --git a/device/core/device_client.h b/device/core/device_client.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d8d938b26842ea91ae92eae931a1906a74519db3
|
| --- /dev/null
|
| +++ b/device/core/device_client.h
|
| @@ -0,0 +1,39 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef DEVICE_CORE_DEVICE_CLIENT_H_
|
| +#define DEVICE_CORE_DEVICE_CLIENT_H_
|
| +
|
| +#include "base/macros.h"
|
| +
|
| +namespace usb_service {
|
| +class UsbService;
|
| +}
|
| +
|
| +namespace device {
|
| +
|
| +// Interface used by consumers of //device APIs to get pointers to the service
|
| +// singletons appropriate for a given embedding application. For an example see
|
| +// //chrome/browser/chrome_device_client.h.
|
| +class DeviceClient {
|
| + public:
|
| + // Construction sets the single instance.
|
| + DeviceClient();
|
| +
|
| + // Destruction clears the single instance.
|
| + ~DeviceClient();
|
| +
|
| + // Returns the single instance of |this|.
|
| + static DeviceClient* Get();
|
| +
|
| + // Returns the UsbService instance for this embedder.
|
| + virtual usb_service::UsbService* GetUsbService();
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(DeviceClient);
|
| +};
|
| +
|
| +} // namespace device
|
| +
|
| +#endif // DEVICE_CORE_DEVICE_CLIENT_H_
|
|
|