OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 25 matching lines...) Expand all Loading... |
36 IPC_STRUCT_MEMBER(int, message_type) | 36 IPC_STRUCT_MEMBER(int, message_type) |
37 IPC_STRUCT_MEMBER(int, message_level) | 37 IPC_STRUCT_MEMBER(int, message_level) |
38 IPC_STRUCT_MEMBER(string16, message) | 38 IPC_STRUCT_MEMBER(string16, message) |
39 IPC_STRUCT_MEMBER(int, line_number) | 39 IPC_STRUCT_MEMBER(int, line_number) |
40 IPC_STRUCT_MEMBER(string16, source_url) | 40 IPC_STRUCT_MEMBER(string16, source_url) |
41 IPC_STRUCT_END() | 41 IPC_STRUCT_END() |
42 | 42 |
43 // Parameter structure for WorkerProcessMsg_CreateWorker. | 43 // Parameter structure for WorkerProcessMsg_CreateWorker. |
44 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params) | 44 IPC_STRUCT_BEGIN(WorkerProcessMsg_CreateWorker_Params) |
45 IPC_STRUCT_MEMBER(GURL, url) | 45 IPC_STRUCT_MEMBER(GURL, url) |
46 IPC_STRUCT_MEMBER(bool, is_shared) | |
47 IPC_STRUCT_MEMBER(string16, name) | 46 IPC_STRUCT_MEMBER(string16, name) |
48 IPC_STRUCT_MEMBER(int, route_id) | 47 IPC_STRUCT_MEMBER(int, route_id) |
49 IPC_STRUCT_MEMBER(int, creator_process_id) | 48 IPC_STRUCT_MEMBER(int, creator_process_id) |
50 // Only valid for dedicated workers. | |
51 IPC_STRUCT_MEMBER(int, creator_appcache_host_id) | |
52 // Only valid for shared workers. | |
53 IPC_STRUCT_MEMBER(int64, shared_worker_appcache_id) | 49 IPC_STRUCT_MEMBER(int64, shared_worker_appcache_id) |
54 IPC_STRUCT_END() | 50 IPC_STRUCT_END() |
55 | 51 |
56 //----------------------------------------------------------------------------- | 52 //----------------------------------------------------------------------------- |
57 // WorkerProcess messages | 53 // WorkerProcess messages |
58 // These are messages sent from the browser to the worker process. | 54 // These are messages sent from the browser to the worker process. |
59 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, | 55 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, |
60 WorkerProcessMsg_CreateWorker_Params) | 56 WorkerProcessMsg_CreateWorker_Params) |
61 | 57 |
62 // Note: these Message Port related messages can also be sent to the | 58 // Note: these Message Port related messages can also be sent to the |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 165 |
170 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, | 166 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, |
171 bool /* bool has_pending_activity */) | 167 bool /* bool has_pending_activity */) |
172 | 168 |
173 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, | 169 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, |
174 bool /* bool has_pending_activity */) | 170 bool /* bool has_pending_activity */) |
175 | 171 |
176 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, | 172 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, |
177 int /* worker_route_id */) | 173 int /* worker_route_id */) |
178 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) | 174 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) |
179 | |
OLD | NEW |