Chromium Code Reviews| 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 */) |