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

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBDevice.h

Issue 2629593004: Disambiguate LifecycleObserver::contextDestroyed (Closed)
Patch Set: temp Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef USBDevice_h 5 #ifndef USBDevice_h
6 #define USBDevice_h 6 #define USBDevice_h
7 7
8 #include "bindings/core/v8/ArrayBufferOrArrayBufferView.h" 8 #include "bindings/core/v8/ArrayBufferOrArrayBufferView.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptWrappable.h" 10 #include "bindings/core/v8/ScriptWrappable.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 ScriptPromise isochronousTransferIn(ScriptState*, 93 ScriptPromise isochronousTransferIn(ScriptState*,
94 uint8_t endpointNumber, 94 uint8_t endpointNumber,
95 Vector<unsigned> packetLengths); 95 Vector<unsigned> packetLengths);
96 ScriptPromise isochronousTransferOut(ScriptState*, 96 ScriptPromise isochronousTransferOut(ScriptState*,
97 uint8_t endpointNumber, 97 uint8_t endpointNumber,
98 const ArrayBufferOrArrayBufferView& data, 98 const ArrayBufferOrArrayBufferView& data,
99 Vector<unsigned> packetLengths); 99 Vector<unsigned> packetLengths);
100 ScriptPromise reset(ScriptState*); 100 ScriptPromise reset(ScriptState*);
101 101
102 // ContextLifecycleObserver interface. 102 // ContextLifecycleObserver interface.
103 void contextDestroyed() override; 103 void contextDestroyed(ExecutionContext*) override;
104 104
105 DECLARE_TRACE(); 105 DECLARE_TRACE();
106 106
107 private: 107 private:
108 int findConfigurationIndex(uint8_t configurationValue) const; 108 int findConfigurationIndex(uint8_t configurationValue) const;
109 int findInterfaceIndex(uint8_t interfaceNumber) const; 109 int findInterfaceIndex(uint8_t interfaceNumber) const;
110 int findAlternateIndex(size_t interfaceIndex, uint8_t alternateSetting) const; 110 int findAlternateIndex(size_t interfaceIndex, uint8_t alternateSetting) const;
111 bool ensureNoDeviceOrInterfaceChangeInProgress(ScriptPromiseResolver*) const; 111 bool ensureNoDeviceOrInterfaceChangeInProgress(ScriptPromiseResolver*) const;
112 bool ensureDeviceConfigured(ScriptPromiseResolver*) const; 112 bool ensureDeviceConfigured(ScriptPromiseResolver*) const;
113 bool ensureInterfaceClaimed(uint8_t interfaceNumber, 113 bool ensureInterfaceClaimed(uint8_t interfaceNumber,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 WTF::BitVector m_claimedInterfaces; 173 WTF::BitVector m_claimedInterfaces;
174 WTF::BitVector m_interfaceStateChangeInProgress; 174 WTF::BitVector m_interfaceStateChangeInProgress;
175 WTF::Vector<size_t> m_selectedAlternates; 175 WTF::Vector<size_t> m_selectedAlternates;
176 WTF::BitVector m_inEndpoints; 176 WTF::BitVector m_inEndpoints;
177 WTF::BitVector m_outEndpoints; 177 WTF::BitVector m_outEndpoints;
178 }; 178 };
179 179
180 } // namespace blink 180 } // namespace blink
181 181
182 #endif // USBDevice_h 182 #endif // USBDevice_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USB.cpp ('k') | third_party/WebKit/Source/modules/webusb/USBDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698