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