blob: da926bd7c5dc9d0871010a090b8119441dba632c (
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 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,
const base::string16& manufacturer_string,
const base::string16& product_string,
const base::string16& serial_number)
: vendor_id_(vendor_id),
product_id_(product_id),
unique_id_(unique_id),
manufacturer_string_(manufacturer_string),
product_string_(product_string),
serial_number_(serial_number) {
}
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
|