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

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

Issue 2742573005: Avoid to include IDL-generated headers from EventTarget.h and Node.h (Closed)
Patch Set: . Created 3 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 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 USB_h 5 #ifndef USB_h
6 #define USB_h 6 #define USB_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 "core/dom/ContextLifecycleObserver.h" 10 #include "core/dom/ContextLifecycleObserver.h"
11 #include "core/events/EventTarget.h" 11 #include "core/events/EventTarget.h"
12 #include "device/usb/public/interfaces/chooser_service.mojom-blink.h" 12 #include "device/usb/public/interfaces/chooser_service.mojom-blink.h"
13 #include "device/usb/public/interfaces/device_manager.mojom-blink.h" 13 #include "device/usb/public/interfaces/device_manager.mojom-blink.h"
14 #include "mojo/public/cpp/bindings/binding.h" 14 #include "mojo/public/cpp/bindings/binding.h"
15 #include "platform/heap/Handle.h" 15 #include "platform/heap/Handle.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 class LocalFrame; 19 class LocalFrame;
20 class ScriptPromiseResolver;
20 class ScriptState; 21 class ScriptState;
21 class USBDevice; 22 class USBDevice;
22 class USBDeviceRequestOptions; 23 class USBDeviceRequestOptions;
23 24
24 class USB final : public EventTargetWithInlineData, 25 class USB final : public EventTargetWithInlineData,
25 public ContextLifecycleObserver, 26 public ContextLifecycleObserver,
26 public device::usb::blink::DeviceManagerClient { 27 public device::usb::blink::DeviceManagerClient {
27 DEFINE_WRAPPERTYPEINFO(); 28 DEFINE_WRAPPERTYPEINFO();
28 USING_GARBAGE_COLLECTED_MIXIN(USB); 29 USING_GARBAGE_COLLECTED_MIXIN(USB);
29 USING_PRE_FINALIZER(USB, dispose); 30 USING_PRE_FINALIZER(USB, dispose);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 HeapHashSet<Member<ScriptPromiseResolver>> m_deviceManagerRequests; 76 HeapHashSet<Member<ScriptPromiseResolver>> m_deviceManagerRequests;
76 device::usb::blink::ChooserServicePtr m_chooserService; 77 device::usb::blink::ChooserServicePtr m_chooserService;
77 HeapHashSet<Member<ScriptPromiseResolver>> m_chooserServiceRequests; 78 HeapHashSet<Member<ScriptPromiseResolver>> m_chooserServiceRequests;
78 mojo::Binding<device::usb::blink::DeviceManagerClient> m_clientBinding; 79 mojo::Binding<device::usb::blink::DeviceManagerClient> m_clientBinding;
79 HeapHashMap<String, WeakMember<USBDevice>> m_deviceCache; 80 HeapHashMap<String, WeakMember<USBDevice>> m_deviceCache;
80 }; 81 };
81 82
82 } // namespace blink 83 } // namespace blink
83 84
84 #endif // USB_h 85 #endif // USB_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/sensor/Sensor.h ('k') | third_party/WebKit/Source/web/SuspendableScriptExecutor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698