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

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

Issue 2466383004: blink: Cleanup class forward declarations (Closed)
Patch Set: Created 4 years, 1 month 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 ScopedScriptPromiseResolver;
21 class ScriptState; 20 class ScriptState;
22 class USBDevice; 21 class USBDevice;
23 class USBDeviceRequestOptions; 22 class USBDeviceRequestOptions;
24 23
25 class USB final : public EventTargetWithInlineData, 24 class USB final : public EventTargetWithInlineData,
26 public ContextLifecycleObserver, 25 public ContextLifecycleObserver,
27 public device::usb::blink::DeviceManagerClient { 26 public device::usb::blink::DeviceManagerClient {
28 DEFINE_WRAPPERTYPEINFO(); 27 DEFINE_WRAPPERTYPEINFO();
29 USING_GARBAGE_COLLECTED_MIXIN(USB); 28 USING_GARBAGE_COLLECTED_MIXIN(USB);
30 USING_PRE_FINALIZER(USB, dispose); 29 USING_PRE_FINALIZER(USB, dispose);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 HeapHashSet<Member<ScriptPromiseResolver>> m_deviceManagerRequests; 75 HeapHashSet<Member<ScriptPromiseResolver>> m_deviceManagerRequests;
77 device::usb::blink::ChooserServicePtr m_chooserService; 76 device::usb::blink::ChooserServicePtr m_chooserService;
78 HeapHashSet<Member<ScriptPromiseResolver>> m_chooserServiceRequests; 77 HeapHashSet<Member<ScriptPromiseResolver>> m_chooserServiceRequests;
79 mojo::Binding<device::usb::blink::DeviceManagerClient> m_clientBinding; 78 mojo::Binding<device::usb::blink::DeviceManagerClient> m_clientBinding;
80 HeapHashMap<String, WeakMember<USBDevice>> m_deviceCache; 79 HeapHashMap<String, WeakMember<USBDevice>> m_deviceCache;
81 }; 80 };
82 81
83 } // namespace blink 82 } // namespace blink
84 83
85 #endif // USB_h 84 #endif // USB_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698