| Index: device/usb/usb_device.cc
|
| diff --git a/device/usb/usb_device.cc b/device/usb/usb_device.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..4b9ed1e9a6ebf37e0490cb0911ce718ed7370e4a
|
| --- /dev/null
|
| +++ b/device/usb/usb_device.cc
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2015 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.
|
| +
|
| +#include "device/usb/usb_device.h"
|
| +
|
| +namespace device {
|
| +
|
| +UsbDevice::UsbDevice(uint16 vendor_id, uint16 product_id, uint32 unique_id)
|
| + : vendor_id_(vendor_id), product_id_(product_id), unique_id_(unique_id) {
|
| +}
|
| +
|
| +UsbDevice::~UsbDevice() {
|
| +}
|
| +
|
| +void UsbDevice::CheckUsbAccess(const ResultCallback& callback) {
|
| + callback.Run(true);
|
| +}
|
| +
|
| +// Like CheckUsbAccess but actually changes the ownership of the device node.
|
| +void UsbDevice::RequestUsbAccess(int interface_id,
|
| + const ResultCallback& callback) {
|
| + callback.Run(true);
|
| +}
|
| +
|
| +} // namespace device
|
|
|