blob: 2a5e717c95a98093319ac161a04e17f8987c741a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// 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 EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
#define EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
#include "device/core/device_client.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
namespace extensions {
// Implementation of device::DeviceClient that returns //device API service
// singletons appropriate for use within app shell.
class ShellDeviceClient : device::DeviceClient {
public:
ShellDeviceClient();
~ShellDeviceClient() override;
// device::DeviceClient implementation
device::UsbService* GetUsbService() override;
device::HidService* GetHidService() override;
private:
scoped_ptr<device::HidService> hid_service_;
scoped_ptr<device::UsbService> usb_service_;
DISALLOW_COPY_AND_ASSIGN(ShellDeviceClient);
};
}
#endif // EXTENSIONS_SHELL_BROWSER_SHELL_DEVICE_CLIENT_H_
|