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_BROWSER_API_USB_USB_PRIVATE_API_H_
6 #define EXTENSIONS_BROWSER_API_USB_USB_PRIVATE_API_H_
8 #include "extensions/browser/api/usb/usb_api.h"
9 #include "extensions/common/api/usb_private.h"
11 namespace extensions
{
13 class UsbPrivateGetDevicesFunction
: public UsbAsyncApiFunction
{
15 DECLARE_EXTENSION_FUNCTION("usbPrivate.getDevices", USBPRIVATE_GETDEVICES
)
17 UsbPrivateGetDevicesFunction();
19 virtual bool Prepare() OVERRIDE
;
20 virtual void AsyncWorkStart() OVERRIDE
;
23 virtual ~UsbPrivateGetDevicesFunction();
26 scoped_ptr
<extensions::core_api::usb_private::GetDevices::Params
> parameters_
;
29 class UsbPrivateGetDeviceInfoFunction
: public UsbAsyncApiFunction
{
31 DECLARE_EXTENSION_FUNCTION("usbPrivate.getDeviceInfo",
32 USBPRIVATE_GETDEVICEINFO
)
34 UsbPrivateGetDeviceInfoFunction();
36 virtual bool Prepare() OVERRIDE
;
37 virtual void AsyncWorkStart() OVERRIDE
;
40 virtual ~UsbPrivateGetDeviceInfoFunction();
43 scoped_ptr
<extensions::core_api::usb_private::GetDeviceInfo::Params
>
47 } // namespace extensions
49 #endif // EXTENSIONS_BROWSER_API_USB_USB_API_H_