Reland of Adding total available size of heap in v8 isolate memory dump provider.
[chromium-blink-merge.git] / device / usb / usb_device.cc
blobda926bd7c5dc9d0871010a090b8119441dba632c
1 // Copyright 2015 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 #include "device/usb/usb_device.h"
7 namespace device {
9 UsbDevice::UsbDevice(uint16 vendor_id,
10 uint16 product_id,
11 uint32 unique_id,
12 const base::string16& manufacturer_string,
13 const base::string16& product_string,
14 const base::string16& serial_number)
15 : vendor_id_(vendor_id),
16 product_id_(product_id),
17 unique_id_(unique_id),
18 manufacturer_string_(manufacturer_string),
19 product_string_(product_string),
20 serial_number_(serial_number) {
23 UsbDevice::~UsbDevice() {
26 void UsbDevice::CheckUsbAccess(const ResultCallback& callback) {
27 callback.Run(true);
30 // Like CheckUsbAccess but actually changes the ownership of the device node.
31 void UsbDevice::RequestUsbAccess(int interface_id,
32 const ResultCallback& callback) {
33 callback.Run(true);
36 } // namespace device