Durable Storage: Refactor browser test and test the basic "deny" flow.
[chromium-blink-merge.git] / device / core / device_client.h
blobd63471b941a249e3b1176411d215721f860bea5b
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"
10 namespace device {
12 class HidService;
13 class UsbService;
15 namespace usb {
16 class DeviceManager;
19 // Interface used by consumers of //device APIs to get pointers to the service
20 // singletons appropriate for a given embedding application. For an example see
21 // //chrome/browser/chrome_device_client.h.
22 class DeviceClient {
23 public:
24 // Construction sets the single instance.
25 DeviceClient();
27 // Destruction clears the single instance.
28 virtual ~DeviceClient();
30 // Returns the single instance of |this|.
31 static DeviceClient* Get();
33 // Returns the UsbService instance for this embedder.
34 virtual UsbService* GetUsbService();
36 // Returns the HidService instance for this embedder.
37 virtual HidService* GetHidService();
39 private:
40 DISALLOW_COPY_AND_ASSIGN(DeviceClient);
43 } // namespace device
45 #endif // DEVICE_CORE_DEVICE_CLIENT_H_