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

Unified Diff: content/common/service_worker_messages.h

Issue 54573002: Initial child-process side plumbing for starting an embedded ServiceWorker context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: WebKit -> blink etc Created 7 years, 1 month 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/common/service_worker_messages.h
diff --git a/content/common/service_worker_messages.h b/content/common/service_worker_messages.h
index 92c6e908994ac442deec2399ce256e09ba4b638d..dc5ab2082567e201d1091d2765d29197e6ed079e 100644
--- a/content/common/service_worker_messages.h
+++ b/content/common/service_worker_messages.h
@@ -8,6 +8,8 @@
#include "ipc/ipc_message_macros.h"
#include "ipc/ipc_param_traits.h"
#include "third_party/WebKit/public/platform/WebServiceWorkerError.h"
+#include "third_party/WebKit/public/web/WebContentSecurityPolicy.h"
+#include "third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h"
#include "url/gurl.h"
#undef IPC_MESSAGE_EXPORT
@@ -50,3 +52,26 @@ IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
int32 /* request_id */,
blink::WebServiceWorkerError::ErrorType /* code */,
string16 /* message */)
+
+// For EmbeddedWorker related messages -------------------------------------
+
+IPC_ENUM_TRAITS(blink::WebEmbeddedWorkerStartMode)
+
+IPC_STRUCT_BEGIN(ServiceWorkerMsg_StartWorker_Params)
+ IPC_STRUCT_MEMBER(int32, embedded_worker_id)
+ IPC_STRUCT_MEMBER(int64, service_worker_version_id)
+ IPC_STRUCT_MEMBER(GURL, script_url)
+ IPC_STRUCT_MEMBER(string16, script_source)
michaeln 2013/11/13 00:31:37 Like we've talked talked about, I think we want th
kinuko 2013/11/18 14:09:48 Done.
+ IPC_STRUCT_MEMBER(string16, content_security_policy)
+ IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType,
+ content_security_policy_type)
+ IPC_STRUCT_MEMBER(blink::WebEmbeddedWorkerStartMode, start_mode)
michaeln 2013/11/13 00:31:37 what is "start_mode"?
kinuko 2013/11/18 14:09:48 For devtools support. We can remove this for now (
+IPC_STRUCT_END()
+
+// Browser -> Renderer message to create a new embedded worker context.
+IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_StartWorker,
+ ServiceWorkerMsg_StartWorker_Params)
+
+// Browser -> Renderer message to terminate the embedded worker.
+IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_TerminateWorker,
+ int32 /* embedded_worker_id */)

Powered by Google App Engine
This is Rietveld 408576698