// 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" #include "base/guid.h" namespace device { UsbDevice::UsbDevice(uint16 vendor_id, uint16 product_id, const base::string16& manufacturer_string, const base::string16& product_string, const base::string16& serial_number) : guid_(base::GenerateGUID()), vendor_id_(vendor_id), product_id_(product_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