Elim cr-checkbox
[chromium-blink-merge.git] / extensions / shell / browser / shell_device_client.h
blob2a5e717c95a98093319ac161a04e17f8987c741a
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 EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
6 #define EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
8 #include "device/core/device_client.h"
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
14 namespace extensions {
16 // Implementation of device::DeviceClient that returns //device API service
17 // singletons appropriate for use within app shell.
18 class ShellDeviceClient : device::DeviceClient {
19 public:
20 ShellDeviceClient();
21 ~ShellDeviceClient() override;
23 // device::DeviceClient implementation
24 device::UsbService* GetUsbService() override;
25 device::HidService* GetHidService() override;
27 private:
28 scoped_ptr<device::HidService> hid_service_;
29 scoped_ptr<device::UsbService> usb_service_;
31 DISALLOW_COPY_AND_ASSIGN(ShellDeviceClient);
36 #endif // EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_