OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include <utility> | 5 #include <utility> |
6 #include <vector> | 6 #include <vector> |
7 #include "base/string16.h" | 7 #include "base/string16.h" |
8 #include "googleurl/src/gurl.h" | 8 #include "googleurl/src/gurl.h" |
9 #include "ipc/ipc_message_macros.h" | 9 #include "ipc/ipc_message_macros.h" |
10 | 10 |
11 | 11 |
12 //----------------------------------------------------------------------------- | 12 //----------------------------------------------------------------------------- |
13 // WorkerProcess messages | 13 // WorkerProcess messages |
14 // These are messages sent from the browser to the worker process. | 14 // These are messages sent from the browser to the worker process. |
15 IPC_BEGIN_MESSAGES(WorkerProcess) | 15 IPC_BEGIN_MESSAGES(WorkerProcess) |
16 IPC_MESSAGE_CONTROL4(WorkerProcessMsg_CreateWorker, | 16 IPC_MESSAGE_CONTROL1(WorkerProcessMsg_CreateWorker, |
17 GURL /* url */, | 17 WorkerProcessMsg_CreateWorker_Params) |
18 bool /* is_shared */, | |
19 string16 /* name */, | |
20 int /* route_id */) | |
21 | 18 |
22 // Note: these Message Port related messages can also be sent to the | 19 // Note: these Message Port related messages can also be sent to the |
23 // renderer process. Putting them here since we don't have a shared place | 20 // renderer process. Putting them here since we don't have a shared place |
24 // like common_messages_internal.h | 21 // like common_messages_internal.h |
25 IPC_MESSAGE_ROUTED3(WorkerProcessMsg_Message, | 22 IPC_MESSAGE_ROUTED3(WorkerProcessMsg_Message, |
26 string16 /* message */, | 23 string16 /* message */, |
27 std::vector<int> /* sent_message_port_ids */, | 24 std::vector<int> /* sent_message_port_ids */, |
28 std::vector<int> /* new_routing_ids */) | 25 std::vector<int> /* new_routing_ids */) |
29 | 26 |
30 // Tells the Message Port Channel object that there are no more in-flight | 27 // Tells the Message Port Channel object that there are no more in-flight |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, | 117 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, |
121 bool /* bool has_pending_activity */) | 118 bool /* bool has_pending_activity */) |
122 | 119 |
123 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, | 120 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, |
124 bool /* bool has_pending_activity */) | 121 bool /* bool has_pending_activity */) |
125 | 122 |
126 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, | 123 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, |
127 int /* worker_route_id */) | 124 int /* worker_route_id */) |
128 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) | 125 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) |
129 IPC_END_MESSAGES(WorkerHost) | 126 IPC_END_MESSAGES(WorkerHost) |
OLD | NEW |