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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "bindings/modules/v8/UnionTypesModules.h" 10 #include "bindings/modules/v8/UnionTypesModules.h"
(...skipping 11 matching lines...) Expand all
22 class ScriptPromiseResolver; 22 class ScriptPromiseResolver;
23 class ScriptState; 23 class ScriptState;
24 class USBConfiguration; 24 class USBConfiguration;
25 class USBControlTransferParameters; 25 class USBControlTransferParameters;
26 26
27 class USBDevice 27 class USBDevice
28 : public GarbageCollectedFinalized<USBDevice> 28 : public GarbageCollectedFinalized<USBDevice>
29 , public ContextLifecycleObserver 29 , public ContextLifecycleObserver
30 , public ScriptWrappable 30 , public ScriptWrappable
31 , public PageLifecycleObserver { 31 , public PageLifecycleObserver {
32 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(USBDevice); 32 USING_GARBAGE_COLLECTED_MIXIN(USBDevice);
33 DEFINE_WRAPPERTYPEINFO(); 33 DEFINE_WRAPPERTYPEINFO();
34 public: 34 public:
35 using WebType = OwnPtr<WebUSBDevice>; 35 using WebType = OwnPtr<WebUSBDevice>;
36 36
37 static USBDevice* create(PassOwnPtr<WebUSBDevice> device, ExecutionContext* context) 37 static USBDevice* create(PassOwnPtr<WebUSBDevice> device, ExecutionContext* context)
38 { 38 {
39 return new USBDevice(device, context); 39 return new USBDevice(device, context);
40 } 40 }
41 41
42 static USBDevice* take(ScriptPromiseResolver*, PassOwnPtr<WebUSBDevice>); 42 static USBDevice* take(ScriptPromiseResolver*, PassOwnPtr<WebUSBDevice>);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 WTF::BitVector m_claimedInterfaces; 116 WTF::BitVector m_claimedInterfaces;
117 WTF::BitVector m_interfaceStateChangeInProgress; 117 WTF::BitVector m_interfaceStateChangeInProgress;
118 WTF::Vector<size_t> m_selectedAlternates; 118 WTF::Vector<size_t> m_selectedAlternates;
119 WTF::BitVector m_inEndpoints; 119 WTF::BitVector m_inEndpoints;
120 WTF::BitVector m_outEndpoints; 120 WTF::BitVector m_outEndpoints;
121 }; 121 };
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif // USBDevice_h 125 #endif // USBDevice_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBController.cpp ('k') | third_party/WebKit/Source/modules/worklet/Worklet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698