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

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: addressed comments and removed some code 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
« no previous file with comments | « no previous file | content/content_renderer.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..ab0e68c9e91143ecff377c9528e30c56d723d0ed 100644
--- a/content/common/service_worker_messages.h
+++ b/content/common/service_worker_messages.h
@@ -8,6 +8,7 @@
#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 "url/gurl.h"
#undef IPC_MESSAGE_EXPORT
@@ -50,3 +51,22 @@ IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
int32 /* request_id */,
blink::WebServiceWorkerError::ErrorType /* code */,
string16 /* message */)
+
+// For EmbeddedWorker related messages -------------------------------------
+
+IPC_STRUCT_BEGIN(ServiceWorkerMsg_StartWorker_Params)
+ IPC_STRUCT_MEMBER(int32, embedded_worker_id)
michaeln 2013/11/19 01:17:08 I have a question regarding int32 vs plain int? Ou
kinuko 2013/11/19 07:45:42 This sounds reasonable to me.
+ IPC_STRUCT_MEMBER(int64, service_worker_version_id)
+ IPC_STRUCT_MEMBER(GURL, script_url)
+ IPC_STRUCT_MEMBER(string16, content_security_policy)
michaeln 2013/11/19 01:17:08 Where do these values come from and what do they m
kinuko 2013/11/19 01:49:10 That's what I'm trying to figure out now too.. As
kinuko 2013/11/19 07:30:58 Some more info: It's for CSP, and the string's co
+ IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType,
+ content_security_policy_type)
+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 */)
« no previous file with comments | « no previous file | content/content_renderer.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698