Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4391)

Unified Diff: chrome/browser/usb/usb_device.h

Issue 22914023: Introducing chrome.usb.getDevices/openDevice API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-interface
Patch Set: Fixes Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/usb/usb_device.h
diff --git a/chrome/browser/usb/usb_device.h b/chrome/browser/usb/usb_device.h
index 8891ad0c53735236333935cfd2b9aff9563f6207..0ce5330d62ec09d0a092eb0f13efb4eb75d26c10 100644
--- a/chrome/browser/usb/usb_device.h
+++ b/chrome/browser/usb/usb_device.h
@@ -28,6 +28,7 @@ class UsbDevice : public base::RefCountedThreadSafe<UsbDevice> {
PlatformUsbDevice platform_device() const { return platform_device_; }
uint16 vendor_id() const { return vendor_id_; }
uint16 product_id() const { return product_id_; }
+ uint32 unique_id() const { return unique_id_; }
// Creates a UsbDeviceHandle for further manipulation.
// Blocking method. Must be called on FILE thread.
@@ -52,7 +53,8 @@ class UsbDevice : public base::RefCountedThreadSafe<UsbDevice> {
UsbDevice(scoped_refptr<UsbContext> context,
PlatformUsbDevice platform_device,
uint16 vendor_id,
- uint16 product_id);
+ uint16 product_id,
+ uint32 unique_id);
// Constructor called in test only.
UsbDevice();
@@ -65,6 +67,7 @@ class UsbDevice : public base::RefCountedThreadSafe<UsbDevice> {
PlatformUsbDevice platform_device_;
uint16 vendor_id_;
uint16 product_id_;
+ uint32 unique_id_;
// Retain the context so that it will not be released before UsbDevice.
scoped_refptr<UsbContext> context_;

Powered by Google App Engine
This is Rietveld 408576698