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

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, 10 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"
11 #include "core/dom/ContextLifecycleObserver.h" 11 #include "core/dom/ContextLifecycleObserver.h"
12 #include "platform/heap/Handle.h" 12 #include "platform/heap/Handle.h"
13 #include "public/platform/modules/webusb/WebUSBDevice.h" 13 #include "public/platform/modules/webusb/WebUSBDevice.h"
14 #include "public/platform/modules/webusb/WebUSBDeviceInfo.h" 14 #include "public/platform/modules/webusb/WebUSBDeviceInfo.h"
15 #include "wtf/Vector.h" 15 #include "wtf/Vector.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class ScriptPromiseResolver; 19 class ScriptPromiseResolver;
20 class ScriptState; 20 class ScriptState;
21 class USBConfiguration; 21 class USBConfiguration;
22 class USBControlTransferParameters; 22 class USBControlTransferParameters;
23 23
24 class USBDevice 24 class USBDevice
25 : public GarbageCollectedFinalized<USBDevice> 25 : public GarbageCollectedFinalized<USBDevice>
26 , public ContextLifecycleObserver 26 , public ContextLifecycleObserver
27 , public ScriptWrappable { 27 , public ScriptWrappable {
28 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(USBDevice); 28 USING_GARBAGE_COLLECTED_MIXIN(USBDevice);
29 DEFINE_WRAPPERTYPEINFO(); 29 DEFINE_WRAPPERTYPEINFO();
30 public: 30 public:
31 using WebType = OwnPtr<WebUSBDevice>; 31 using WebType = OwnPtr<WebUSBDevice>;
32 32
33 static USBDevice* create(PassOwnPtr<WebUSBDevice> device) 33 static USBDevice* create(PassOwnPtr<WebUSBDevice> device)
34 { 34 {
35 return new USBDevice(device); 35 return new USBDevice(device);
36 } 36 }
37 37
38 static USBDevice* take(ScriptPromiseResolver*, PassOwnPtr<WebUSBDevice> devi ce) 38 static USBDevice* take(ScriptPromiseResolver*, PassOwnPtr<WebUSBDevice> devi ce)
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 DECLARE_TRACE(); 89 DECLARE_TRACE();
90 90
91 private: 91 private:
92 OwnPtr<WebUSBDevice> m_device; 92 OwnPtr<WebUSBDevice> m_device;
93 }; 93 };
94 94
95 } // namespace blink 95 } // namespace blink
96 96
97 #endif // USBDevice_h 97 #endif // USBDevice_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698