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

Unified Diff: content/browser/navigator_connect/navigator_connect_dispatcher_host.h

Issue 785133006: Enable messaging over a navigator.connect initiated channel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigator-connect_serviceside
Patch Set: add empty line Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/navigator_connect/navigator_connect_dispatcher_host.h
diff --git a/content/browser/navigator_connect/navigator_connect_dispatcher_host.h b/content/browser/navigator_connect/navigator_connect_dispatcher_host.h
index ce2bde8ebcd6704ce85240720340bd85fea7f8f8..86350a7d5f744d5d9f7662489938c6b31919fcf3 100644
--- a/content/browser/navigator_connect/navigator_connect_dispatcher_host.h
+++ b/content/browser/navigator_connect/navigator_connect_dispatcher_host.h
@@ -13,6 +13,7 @@ class GURL;
namespace content {
struct CrossOriginServiceWorkerClient;
+class NavigatorConnectContext;
class ServiceWorkerContextWrapper;
class ServiceWorkerRegistration;
@@ -26,8 +27,9 @@ class ServiceWorkerRegistration;
// if it is still handling a connection attempt).
class NavigatorConnectDispatcherHost : public BrowserMessageFilter {
public:
- explicit NavigatorConnectDispatcherHost(
- const scoped_refptr<ServiceWorkerContextWrapper>& service_worker_context);
+ NavigatorConnectDispatcherHost(
+ const scoped_refptr<ServiceWorkerContextWrapper>& service_worker_context,
+ const scoped_refptr<NavigatorConnectContext>& navigator_connect_context);
private:
~NavigatorConnectDispatcherHost() override;
@@ -60,6 +62,7 @@ class NavigatorConnectDispatcherHost : public BrowserMessageFilter {
bool accept_connection);
scoped_refptr<ServiceWorkerContextWrapper> service_worker_context_;
+ scoped_refptr<NavigatorConnectContext> navigator_connect_context_;
DISALLOW_COPY_AND_ASSIGN(NavigatorConnectDispatcherHost);
};

Powered by Google App Engine
This is Rietveld 408576698