| 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 23 matching lines...) Expand all Loading... |
| 34 IPC_STRUCT_MEMBER(int, line_number) | 34 IPC_STRUCT_MEMBER(int, line_number) |
| 35 IPC_STRUCT_MEMBER(base::string16, source_url) | 35 IPC_STRUCT_MEMBER(base::string16, source_url) |
| 36 IPC_STRUCT_END() | 36 IPC_STRUCT_END() |
| 37 | 37 |
| 38 // Parameter structure for WorkerProcessMsg_CreateWorker. | 38 // Parameter structure for WorkerProcessMsg_CreateWorker. |
| 39 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params) | 39 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params) |
| 40 IPC_STRUCT_MEMBER(GURL, url) | 40 IPC_STRUCT_MEMBER(GURL, url) |
| 41 IPC_STRUCT_MEMBER(base::string16, name) | 41 IPC_STRUCT_MEMBER(base::string16, name) |
| 42 IPC_STRUCT_MEMBER(base::string16, content_security_policy) | 42 IPC_STRUCT_MEMBER(base::string16, content_security_policy) |
| 43 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type) | 43 IPC_STRUCT_MEMBER(blink::WebContentSecurityPolicyType, security_policy_type) |
| 44 IPC_STRUCT_MEMBER(blink::WebAddressSpace, creation_address_space) |
| 44 IPC_STRUCT_MEMBER(bool, pause_on_start) | 45 IPC_STRUCT_MEMBER(bool, pause_on_start) |
| 45 IPC_STRUCT_MEMBER(int, route_id) | 46 IPC_STRUCT_MEMBER(int, route_id) |
| 46 IPC_STRUCT_END() | 47 IPC_STRUCT_END() |
| 47 | 48 |
| 48 //----------------------------------------------------------------------------- | 49 //----------------------------------------------------------------------------- |
| 49 // WorkerProcess messages | 50 // WorkerProcess messages |
| 50 // These are messages sent from the browser to the worker process. | 51 // These are messages sent from the browser to the worker process. |
| 51 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, | 52 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, |
| 52 WorkerProcessMsg_CreateWorker_Params) | 53 WorkerProcessMsg_CreateWorker_Params) |
| 53 | 54 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 111 |
| 111 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoaded, | 112 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoaded, |
| 112 int /* worker_route_id */) | 113 int /* worker_route_id */) |
| 113 | 114 |
| 114 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoadFailed, | 115 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerScriptLoadFailed, |
| 115 int /* worker_route_id */) | 116 int /* worker_route_id */) |
| 116 | 117 |
| 117 IPC_MESSAGE_CONTROL2(WorkerHostMsg_WorkerConnected, | 118 IPC_MESSAGE_CONTROL2(WorkerHostMsg_WorkerConnected, |
| 118 int /* message_port_id */, | 119 int /* message_port_id */, |
| 119 int /* worker_route_id */) | 120 int /* worker_route_id */) |
| OLD | NEW |