Add ICU message format support
[chromium-blink-merge.git] / device / usb / usb_device.cc
blobc221b7271d60571b166d6558e54ba221e0a5e129
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"
8 #include "device/usb/webusb_descriptors.h"
10 namespace device {
12 UsbDevice::UsbDevice(uint16 vendor_id,
13 uint16 product_id,
14 const base::string16& manufacturer_string,
15 const base::string16& product_string,
16 const base::string16& serial_number)
17 : manufacturer_string_(manufacturer_string),
18 product_string_(product_string),
19 serial_number_(serial_number),
20 guid_(base::GenerateGUID()),
21 vendor_id_(vendor_id),
22 product_id_(product_id) {
25 UsbDevice::~UsbDevice() {
28 void UsbDevice::CheckUsbAccess(const ResultCallback& callback) {
29 // By default assume that access to the device is allowed. This is implemented
30 // on Chrome OS by checking with permission_broker.
31 callback.Run(true);
34 } // namespace device