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

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

Issue 2314573002: Don't expose webshare from the browser when the origin trial disables it. (Closed)
Patch Set: Created 4 years, 2 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 25 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | third_party/WebKit/Source/modules/webshare/NavigatorShare.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698