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

Unified Diff: content/common/navigator_connect_messages.h

Issue 781723002: Pass navigator.connect calls through to the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/navigator_connect_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/navigator_connect_messages.h
diff --git a/content/common/navigator_connect_messages.h b/content/common/navigator_connect_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..5871bb4f28dcb8ca8a8f589e311a7df977cad12c
--- /dev/null
+++ b/content/common/navigator_connect_messages.h
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// IPC messages for navigator.connect
+
+#include "content/common/navigator_connect_types.h"
+#include "ipc/ipc_message_macros.h"
+#include "url/gurl.h"
+
+#define IPC_MESSAGE_START NavigatorConnectMsgStart
+
+IPC_STRUCT_TRAITS_BEGIN(content::CrossOriginServiceWorkerClient)
+ IPC_STRUCT_TRAITS_MEMBER(target_url)
+ IPC_STRUCT_TRAITS_MEMBER(origin)
+ IPC_STRUCT_TRAITS_MEMBER(message_port_id)
+IPC_STRUCT_TRAITS_END()
+
+// Messages sent from the child process to the browser.
+IPC_MESSAGE_CONTROL3(NavigatorConnectHostMsg_Connect,
+ int /* thread_id */,
+ int /* request_id */,
+ content::CrossOriginServiceWorkerClient /* client */)
+
+// Messages sent from the browser to the child process.
+IPC_MESSAGE_CONTROL3(NavigatorConnectMsg_ConnectResult,
+ int /* thread_id */,
+ int /* request_id */,
+ bool /* allow_connect */)
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/common/navigator_connect_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698