GPU workaround to simulate Out of Memory errors with large textures
[chromium-blink-merge.git] / device / usb / usb_device.cc
blob4b9ed1e9a6ebf37e0490cb0911ce718ed7370e4a
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, uint16 product_id, uint32 unique_id)
10 : vendor_id_(vendor_id), product_id_(product_id), unique_id_(unique_id) {
13 UsbDevice::~UsbDevice() {
16 void UsbDevice::CheckUsbAccess(const ResultCallback& callback) {
17 callback.Run(true);
20 // Like CheckUsbAccess but actually changes the ownership of the device node.
21 void UsbDevice::RequestUsbAccess(int interface_id,
22 const ResultCallback& callback) {
23 callback.Run(true);
26 } // namespace device