| 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 // 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> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
| 15 #include "base/string16.h" | 15 #include "base/string16.h" |
| 16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
| 17 #include "ipc/ipc_message_macros.h" | 17 #include "ipc/ipc_message_macros.h" |
| 18 #include "ipc/ipc_message_utils.h" | 18 #include "ipc/ipc_message_utils.h" |
| 19 | 19 |
| 20 // Singly-inlcuded section still not converted. |
| 21 #ifndef CHROME_COMMON_WORKER_MESSAGES_H_ |
| 22 #define CHROME_COMMON_WORKER_MESSAGES_H_ |
| 23 |
| 20 typedef std::pair<string16, std::vector<int> > QueuedMessage; | 24 typedef std::pair<string16, std::vector<int> > QueuedMessage; |
| 21 | 25 |
| 26 #endif // CHROME_COMMON_WORKER_MESSAGES_H_ |
| 27 |
| 22 #define IPC_MESSAGE_START WorkerMsgStart | 28 #define IPC_MESSAGE_START WorkerMsgStart |
| 23 | 29 |
| 24 // Parameters structure for WorkerHostMsg_PostConsoleMessageToWorkerObject, | 30 // Parameters structure for WorkerHostMsg_PostConsoleMessageToWorkerObject, |
| 25 // which has too many data parameters to be reasonably put in a predefined | 31 // which has too many data parameters to be reasonably put in a predefined |
| 26 // IPC message. The data members directly correspond to parameters of | 32 // IPC message. The data members directly correspond to parameters of |
| 27 // WebWorkerClient::postConsoleMessageToWorkerObject() | 33 // WebWorkerClient::postConsoleMessageToWorkerObject() |
| 28 IPC_STRUCT_BEGIN(WorkerHostMsg_PostConsoleMessageToWorkerObject_Params) | 34 IPC_STRUCT_BEGIN(WorkerHostMsg_PostConsoleMessageToWorkerObject_Params) |
| 29 IPC_STRUCT_MEMBER(int, source_identifier) | 35 IPC_STRUCT_MEMBER(int, source_identifier) |
| 30 IPC_STRUCT_MEMBER(int, message_type) | 36 IPC_STRUCT_MEMBER(int, message_type) |
| 31 IPC_STRUCT_MEMBER(int, message_level) | 37 IPC_STRUCT_MEMBER(int, message_level) |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, | 164 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ConfirmMessageFromWorkerObject, |
| 159 bool /* bool has_pending_activity */) | 165 bool /* bool has_pending_activity */) |
| 160 | 166 |
| 161 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, | 167 IPC_MESSAGE_ROUTED1(WorkerHostMsg_ReportPendingActivity, |
| 162 bool /* bool has_pending_activity */) | 168 bool /* bool has_pending_activity */) |
| 163 | 169 |
| 164 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, | 170 IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed, |
| 165 int /* worker_route_id */) | 171 int /* worker_route_id */) |
| 166 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) | 172 IPC_MESSAGE_ROUTED0(WorkerHostMsg_WorkerContextDestroyed) |
| 167 | 173 |
| OLD | NEW |