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..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 */) |