| OLD | NEW |
| 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" | |
| 10 #include "core/dom/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 11 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| 12 #include "device/usb/public/interfaces/chooser_service.mojom-blink.h" | 11 #include "device/usb/public/interfaces/chooser_service.mojom-blink.h" |
| 13 #include "device/usb/public/interfaces/device_manager.mojom-blink.h" | 12 #include "device/usb/public/interfaces/device_manager.mojom-blink.h" |
| 14 #include "mojo/public/cpp/bindings/binding.h" | 13 #include "mojo/public/cpp/bindings/binding.h" |
| 14 #include "platform/bindings/ScriptWrappable.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 ScriptPromiseResolver; |
| 21 class ScriptState; | 21 class ScriptState; |
| 22 class USBDevice; | 22 class USBDevice; |
| 23 class USBDeviceRequestOptions; | 23 class USBDeviceRequestOptions; |
| 24 | 24 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 HeapHashSet<Member<ScriptPromiseResolver>> device_manager_requests_; | 83 HeapHashSet<Member<ScriptPromiseResolver>> device_manager_requests_; |
| 84 device::mojom::blink::UsbChooserServicePtr chooser_service_; | 84 device::mojom::blink::UsbChooserServicePtr chooser_service_; |
| 85 HeapHashSet<Member<ScriptPromiseResolver>> chooser_service_requests_; | 85 HeapHashSet<Member<ScriptPromiseResolver>> chooser_service_requests_; |
| 86 mojo::Binding<device::mojom::blink::UsbDeviceManagerClient> client_binding_; | 86 mojo::Binding<device::mojom::blink::UsbDeviceManagerClient> client_binding_; |
| 87 HeapHashMap<String, WeakMember<USBDevice>> device_cache_; | 87 HeapHashMap<String, WeakMember<USBDevice>> device_cache_; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| 91 | 91 |
| 92 #endif // USB_h | 92 #endif // USB_h |
| OLD | NEW |