| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 NavigatorShare_h | 5 #ifndef NavigatorShare_h |
| 6 #define NavigatorShare_h | 6 #define NavigatorShare_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptPromise.h" | 8 #include "bindings/core/v8/ScriptPromise.h" |
| 9 #include "bindings/core/v8/ScriptPromiseResolver.h" | 9 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 10 #include "bindings/core/v8/ScriptWrappable.h" | 10 #include "bindings/core/v8/ScriptWrappable.h" |
| 11 #include "core/dom/ContextLifecycleObserver.h" | 11 #include "core/dom/ContextLifecycleObserver.h" |
| 12 #include "core/events/EventTarget.h" | 12 #include "core/events/EventTarget.h" |
| 13 #include "core/frame/Navigator.h" | 13 #include "core/frame/Navigator.h" |
| 14 #include "platform/Supplementable.h" | 14 #include "platform/Supplementable.h" |
| 15 #include "platform/heap/Handle.h" | 15 #include "platform/heap/Handle.h" |
| 16 #include "platform/wtf/HashSet.h" |
| 16 #include "public/platform/modules/webshare/webshare.mojom-blink.h" | 17 #include "public/platform/modules/webshare/webshare.mojom-blink.h" |
| 17 #include "wtf/HashSet.h" | |
| 18 | 18 |
| 19 namespace blink { | 19 namespace blink { |
| 20 | 20 |
| 21 class Navigator; | 21 class Navigator; |
| 22 class ShareData; | 22 class ShareData; |
| 23 | 23 |
| 24 class NavigatorShare final : public GarbageCollectedFinalized<NavigatorShare>, | 24 class NavigatorShare final : public GarbageCollectedFinalized<NavigatorShare>, |
| 25 public Supplement<Navigator> { | 25 public Supplement<Navigator> { |
| 26 USING_GARBAGE_COLLECTED_MIXIN(NavigatorShare); | 26 USING_GARBAGE_COLLECTED_MIXIN(NavigatorShare); |
| 27 | 27 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 47 void OnConnectionError(); | 47 void OnConnectionError(); |
| 48 | 48 |
| 49 blink::mojom::blink::ShareServicePtr service_; | 49 blink::mojom::blink::ShareServicePtr service_; |
| 50 | 50 |
| 51 HeapHashSet<Member<ShareClientImpl>> clients_; | 51 HeapHashSet<Member<ShareClientImpl>> clients_; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace blink | 54 } // namespace blink |
| 55 | 55 |
| 56 #endif // NavigatorShare_h | 56 #endif // NavigatorShare_h |
| OLD | NEW |