Add a silent audio sink to consume WebAudio data on silence detection.
[chromium-blink-merge.git] / device / usb / usb_device.cc
blobceab5ea7e7d99006eaf929367b5557cc10148d22
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 #include "base/guid.h"
9 namespace device {
11 UsbDevice::UsbDevice(uint16 vendor_id,
12 uint16 product_id,
13 const base::string16& manufacturer_string,
14 const base::string16& product_string,
15 const base::string16& serial_number)
16 : manufacturer_string_(manufacturer_string),
17 product_string_(product_string),
18 serial_number_(serial_number),
19 guid_(base::GenerateGUID()),
20 vendor_id_(vendor_id),
21 product_id_(product_id) {
24 UsbDevice::~UsbDevice() {
27 void UsbDevice::CheckUsbAccess(const ResultCallback& callback) {
28 // By default assume that access to the device is allowed. This is implemented
29 // on Chrome OS by checking with permission_broker.
30 callback.Run(true);
33 } // namespace device