Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
| 6 | 6 |
| 7 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 8 #include "ipc/ipc_message_macros.h" | 8 #include "ipc/ipc_message_macros.h" |
| 9 #include "ipc/ipc_param_traits.h" | 9 #include "ipc/ipc_param_traits.h" |
| 10 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" | 10 #include "third_party/WebKit/public/platform/WebServiceWorkerError.h" |
| 11 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" | |
| 12 #include "third_party/WebKit/public/web/WebEmbeddedWorkerStartData.h" | |
| 11 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 12 | 14 |
| 13 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
| 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 15 | 17 |
| 16 #define IPC_MESSAGE_START ServiceWorkerMsgStart | 18 #define IPC_MESSAGE_START ServiceWorkerMsgStart |
| 17 | 19 |
| 18 IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType) | 20 IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType) |
| 19 | 21 |
| 20 // Messages sent from the child process to the browser. | 22 // Messages sent from the child process to the browser. |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 43 int32 /* thread_id */, | 45 int32 /* thread_id */, |
| 44 int32 /* request_id */) | 46 int32 /* request_id */) |
| 45 | 47 |
| 46 // Sent when any kind of registration error occurs during a | 48 // Sent when any kind of registration error occurs during a |
| 47 // RegisterServiceWorker / UnregisterServiceWorker handler above. | 49 // RegisterServiceWorker / UnregisterServiceWorker handler above. |
| 48 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 50 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
| 49 int32 /* thread_id */, | 51 int32 /* thread_id */, |
| 50 int32 /* request_id */, | 52 int32 /* request_id */, |
| 51 blink::WebServiceWorkerError::ErrorType /* code */, | 53 blink::WebServiceWorkerError::ErrorType /* code */, |
| 52 string16 /* message */) | 54 string16 /* message */) |
| 55 | |
| 56 // For EmbeddedWorker related messages ------------------------------------- | |
| 57 | |
| 58 IPC_ENUM_TRAITS(blink::WebEmbeddedWorkerStartMode) | |
| 59 | |
| 60 IPC_STRUCT_BEGIN(ServiceWorkerMsg_StartWorker_Params) | |
| 61 IPC_STRUCT_MEMBER(int32, embedded_worker_id) | |
| 62 IPC_STRUCT_MEMBER(int64, service_worker_version_id) | |
| 63 IPC_STRUCT_MEMBER(GURL, script_url) | |
| 64 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.
| |
| 65 IPC_STRUCT_MEMBER(string16, content_security_policy) | |
| 66 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, | |
| 67 content_security_policy_type) | |
| 68 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 (
| |
| 69 IPC_STRUCT_END() | |
| 70 | |
| 71 // Browser -> Renderer message to create a new embedded worker context. | |
| 72 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_StartWorker, | |
| 73 ServiceWorkerMsg_StartWorker_Params) | |
| 74 | |
| 75 // Browser -> Renderer message to terminate the embedded worker. | |
| 76 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_TerminateWorker, | |
| 77 int32 /* embedded_worker_id */) | |
| OLD | NEW |