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

Side by Side Diff: public/platform/WebNavigatorConnectProvider.h

Issue 1198653004: Update client side navigator.connect API to use ServicePortCollection [3/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport-part2
Patch Set: rebase Created 5 years, 5 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
« no previous file with comments | « Source/modules/navigatorconnect/WorkerNavigatorConnect.idl ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebNavigatorConnectProvider_h
6 #define WebNavigatorConnectProvider_h
7
8 #include "WebCallbacks.h"
9
10 namespace blink {
11
12 class WebMessagePortChannel;
13 class WebString;
14 class WebURL;
15
16 typedef WebCallbacks<void, void> WebNavigatorConnectCallbacks;
17 typedef WebCallbacks<WebMessagePortChannel, void> WebNavigatorConnectPortCallbac ks;
18
19 class WebNavigatorConnectProvider {
20 public:
21 virtual ~WebNavigatorConnectProvider() { }
22
23 // Initiates a connection from the given origin to the given URL. When
24 // successful the service can communicate with the client over the given
25 // channel. The origin isn't passed as WebSecurityOrigin because that would
26 // be a layering violation (platform/ code shouldn't depend on web/ code).
27 // Ownership of the WebMessagePortChannel and WebNavigatorConnectCallbacks
28 // objects are both transferred to the provider.
29 virtual void connect(const WebURL&, const WebString& origin, WebNavigatorCon nectPortCallbacks*) { }
30 };
31
32 } // namespace blink
33
34 #endif // WebNavigatorConnectProvider_h
OLDNEW
« no previous file with comments | « Source/modules/navigatorconnect/WorkerNavigatorConnect.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698