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.
5 #ifndef DEVICE_CORE_DEVICE_CLIENT_H_
6 #define DEVICE_CORE_DEVICE_CLIENT_H_
8 #include "base/macros.h"
15 // Interface used by consumers of //device APIs to get pointers to the service
16 // singletons appropriate for a given embedding application. For an example see
17 // //chrome/browser/chrome_device_client.h.
20 // Construction sets the single instance.
23 // Destruction clears the single instance.
26 // Returns the single instance of |this|.
27 static DeviceClient
* Get();
29 // Returns the UsbService instance for this embedder.
30 virtual UsbService
* GetUsbService();
32 // Returns the HidService instance for this embedder.
33 virtual HidService
* GetHidService();
36 DISALLOW_COPY_AND_ASSIGN(DeviceClient
);
41 #endif // DEVICE_CORE_DEVICE_CLIENT_H_