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

Unified Diff: third_party/WebKit/Source/modules/webusb/USBInterface.h

Issue 1814603002: Track USB device interface claim state in Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 9 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: third_party/WebKit/Source/modules/webusb/USBInterface.h
diff --git a/third_party/WebKit/Source/modules/webusb/USBInterface.h b/third_party/WebKit/Source/modules/webusb/USBInterface.h
index 14a354c8e6bbfaa8e01c49331c0ecec95dbfa1e9..0279cc03a29b414ec52da35c5b72d1681de41604 100644
--- a/third_party/WebKit/Source/modules/webusb/USBInterface.h
+++ b/third_party/WebKit/Source/modules/webusb/USBInterface.h
@@ -14,6 +14,7 @@ namespace blink {
class ExceptionState;
class USBAlternateInterface;
class USBConfiguration;
+class USBDevice;
class USBInterface
: public GarbageCollected<USBInterface>
@@ -23,17 +24,19 @@ public:
static USBInterface* create(const USBConfiguration*, size_t interfaceIndex);
static USBInterface* create(const USBConfiguration*, size_t interfaceNumber, ExceptionState&);
- USBInterface(const USBConfiguration*, size_t interfaceIndex);
+ USBInterface(const USBDevice*, size_t configurationIndex, size_t interfaceIndex);
const WebUSBDeviceInfo::Interface& info() const;
uint8_t interfaceNumber() const;
HeapVector<Member<USBAlternateInterface>> alternates() const;
+ bool claimed() const;
DECLARE_TRACE();
private:
- Member<const USBConfiguration> m_configuration;
+ Member<const USBDevice> m_device;
+ const size_t m_configurationIndex;
const size_t m_interfaceIndex;
};
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBDevice.idl ('k') | third_party/WebKit/Source/modules/webusb/USBInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698