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

Side by Side Diff: third_party/WebKit/Source/modules/webshare/NavigatorShare.h

Issue 2649073002: Use a new Supplement constructor in Navigator supplements (part 2) (Closed)
Patch Set: temp Created 3 years, 11 months 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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698