| 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" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // Navigator partial interface | 35 // Navigator partial interface |
| 36 ScriptPromise share(ScriptState*, const ShareData&); | 36 ScriptPromise share(ScriptState*, const ShareData&); |
| 37 static ScriptPromise share(ScriptState*, Navigator&, const ShareData&); | 37 static ScriptPromise share(ScriptState*, Navigator&, const ShareData&); |
| 38 | 38 |
| 39 DECLARE_TRACE(); | 39 DECLARE_TRACE(); |
| 40 | 40 |
| 41 private: | 41 private: |
| 42 class ShareClientImpl; | 42 class ShareClientImpl; |
| 43 | 43 |
| 44 NavigatorShare(); | 44 explicit NavigatorShare(Navigator&); |
| 45 static const char* supplementName(); | 45 static const char* supplementName(); |
| 46 | 46 |
| 47 void onConnectionError(); | 47 void onConnectionError(); |
| 48 | 48 |
| 49 blink::mojom::blink::ShareServicePtr m_service; | 49 blink::mojom::blink::ShareServicePtr m_service; |
| 50 | 50 |
| 51 HeapHashSet<Member<ShareClientImpl>> m_clients; | 51 HeapHashSet<Member<ShareClientImpl>> m_clients; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace blink | 54 } // namespace blink |
| 55 | 55 |
| 56 #endif // NavigatorShare_h | 56 #endif // NavigatorShare_h |
| OLD | NEW |