| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Defines messages between the browser and worker process, as well as between | 5 // Defines messages between the browser and worker process, as well as between |
| 6 // the renderer and worker process. | 6 // the renderer and worker process. |
| 7 | 7 |
| 8 // Multiply-included message file, hence no include guard. | 8 // Multiply-included message file, hence no include guard. |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 IPC_STRUCT_MEMBER(int, message_level) | 33 IPC_STRUCT_MEMBER(int, message_level) |
| 34 IPC_STRUCT_MEMBER(base::string16, message) | 34 IPC_STRUCT_MEMBER(base::string16, message) |
| 35 IPC_STRUCT_MEMBER(int, line_number) | 35 IPC_STRUCT_MEMBER(int, line_number) |
| 36 IPC_STRUCT_MEMBER(base::string16, source_url) | 36 IPC_STRUCT_MEMBER(base::string16, source_url) |
| 37 IPC_STRUCT_END() | 37 IPC_STRUCT_END() |
| 38 | 38 |
| 39 // Parameter structure for WorkerProcessMsg_CreateWorker. | 39 // Parameter structure for WorkerProcessMsg_CreateWorker. |
| 40 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params) | 40 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params) |
| 41 IPC_STRUCT_MEMBER(GURL, url) | 41 IPC_STRUCT_MEMBER(GURL, url) |
| 42 IPC_STRUCT_MEMBER(base::string16, name) | 42 IPC_STRUCT_MEMBER(base::string16, name) |
| 43 IPC_STRUCT_MEMBER(base::string16, content_security_policy) |
| 44 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type) |
| 43 IPC_STRUCT_MEMBER(int, route_id) | 45 IPC_STRUCT_MEMBER(int, route_id) |
| 44 IPC_STRUCT_MEMBER(int, creator_process_id) | 46 IPC_STRUCT_MEMBER(int, creator_process_id) |
| 45 IPC_STRUCT_MEMBER(int64, shared_worker_appcache_id) | 47 IPC_STRUCT_MEMBER(int64, shared_worker_appcache_id) |
| 46 IPC_STRUCT_END() | 48 IPC_STRUCT_END() |
| 47 | 49 |
| 48 IPC_ENUM_TRAITS(blink::WebContentSecurityPolicyType) | |
| 49 | |
| 50 //----------------------------------------------------------------------------- | 50 //----------------------------------------------------------------------------- |
| 51 // WorkerProcess messages | 51 // WorkerProcess messages |
| 52 // These are messages sent from the browser to the worker process. | 52 // These are messages sent from the browser to the worker process. |
| 53 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, | 53 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, |
| 54 WorkerProcessMsg_CreateWorker_Params) | 54 WorkerProcessMsg_CreateWorker_Params) |
| 55 | 55 |
| 56 //----------------------------------------------------------------------------- | 56 //----------------------------------------------------------------------------- |
| 57 // WorkerProcessHost messages | 57 // WorkerProcessHost messages |
| 58 // These are messages sent from the worker process to the browser process. | 58 // These are messages sent from the worker process to the browser process. |
| 59 | 59 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed) | 103 IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed) |
| 104 | 104 |
| 105 | 105 |
| 106 //----------------------------------------------------------------------------- | 106 //----------------------------------------------------------------------------- |
| 107 // WorkerHost messages | 107 // WorkerHost messages |
| 108 // These are messages sent from the worker process to the renderer process. | 108 // These are messages sent from the worker process to the renderer process. |
| 109 // WorkerMsg_PostMessage is also sent here. | 109 // WorkerMsg_PostMessage is also sent here. |
| 110 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, | 110 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, |
| 111 int /* worker_route_id */) | 111 int /* worker_route_id */) |
| 112 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) | 112 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) |
| OLD | NEW |