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" | |
| 11 #include "url/gurl.h" | 12 #include "url/gurl.h" |
| 12 | 13 |
| 13 #undef IPC_MESSAGE_EXPORT | 14 #undef IPC_MESSAGE_EXPORT |
| 14 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 15 | 16 |
| 16 #define IPC_MESSAGE_START ServiceWorkerMsgStart | 17 #define IPC_MESSAGE_START ServiceWorkerMsgStart |
| 17 | 18 |
| 18 IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType) | 19 IPC_ENUM_TRAITS(blink::WebServiceWorkerError::ErrorType) |
| 19 | 20 |
| 20 // Messages sent from the child process to the browser. | 21 // Messages sent from the child process to the browser. |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 43 int32 /* thread_id */, | 44 int32 /* thread_id */, |
| 44 int32 /* request_id */) | 45 int32 /* request_id */) |
| 45 | 46 |
| 46 // Sent when any kind of registration error occurs during a | 47 // Sent when any kind of registration error occurs during a |
| 47 // RegisterServiceWorker / UnregisterServiceWorker handler above. | 48 // RegisterServiceWorker / UnregisterServiceWorker handler above. |
| 48 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, | 49 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, |
| 49 int32 /* thread_id */, | 50 int32 /* thread_id */, |
| 50 int32 /* request_id */, | 51 int32 /* request_id */, |
| 51 blink::WebServiceWorkerError::ErrorType /* code */, | 52 blink::WebServiceWorkerError::ErrorType /* code */, |
| 52 string16 /* message */) | 53 string16 /* message */) |
| 54 | |
| 55 // For EmbeddedWorker related messages ------------------------------------- | |
| 56 | |
| 57 IPC_STRUCT_BEGIN(ServiceWorkerMsg_StartWorker_Params) | |
| 58 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.
| |
| 59 IPC_STRUCT_MEMBER(int64, service_worker_version_id) | |
| 60 IPC_STRUCT_MEMBER(GURL, script_url) | |
| 61 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
| |
| 62 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, | |
| 63 content_security_policy_type) | |
| 64 IPC_STRUCT_END() | |
| 65 | |
| 66 // Browser -> Renderer message to create a new embedded worker context. | |
| 67 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_StartWorker, | |
| 68 ServiceWorkerMsg_StartWorker_Params) | |
| 69 | |
| 70 // Browser -> Renderer message to terminate the embedded worker. | |
| 71 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_TerminateWorker, | |
| 72 int32 /* embedded_worker_id */) | |
| OLD | NEW |