| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Message definition file, included multiple times, hence no include guard. | 5 // Message definition file, included multiple times, hence no include guard. |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "ipc/ipc_message.h" | 9 #include "ipc/ipc_message.h" |
| 10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // Renderer -> Browser message to indicate that the worker is started. | 29 // Renderer -> Browser message to indicate that the worker is started. |
| 30 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, | 30 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, |
| 31 int /* thread_id */, | 31 int /* thread_id */, |
| 32 int /* embedded_worker_id */) | 32 int /* embedded_worker_id */) |
| 33 | 33 |
| 34 // Renderer -> Browser message to indicate that the worker is stopped. | 34 // Renderer -> Browser message to indicate that the worker is stopped. |
| 35 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, | 35 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, |
| 36 int /* embedded_worker_id */) | 36 int /* embedded_worker_id */) |
| 37 | 37 |
| 38 // Renderer ->Browser message to send message. | 38 // Renderer ->Browser message to send message. |
| 39 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_SendMessageToBrowser, | 39 // |request_id| might be used for bi-directional messaging. |
| 40 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_SendMessageToBrowser, |
| 40 int /* embedded_worker_id */, | 41 int /* embedded_worker_id */, |
| 42 int /* request_id */, |
| 41 IPC::Message /* message */) | 43 IPC::Message /* message */) |
| 42 | 44 |
| 43 // --------------------------------------------------------------------------- | 45 // --------------------------------------------------------------------------- |
| 44 // For EmbeddedWorkerContext related messages, which are directly sent from | 46 // For EmbeddedWorkerContext related messages, which are directly sent from |
| 45 // browser to the worker thread in the child process. We use a new message class | 47 // browser to the worker thread in the child process. We use a new message class |
| 46 // for this for easier cross-thread message dispatching. | 48 // for this for easier cross-thread message dispatching. |
| 47 | 49 |
| 48 #undef IPC_MESSAGE_START | 50 #undef IPC_MESSAGE_START |
| 49 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 51 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
| 50 | 52 |
| 51 // Browser -> Renderer message to send message. | 53 // Browser -> Renderer message to send message. |
| 52 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_SendMessageToWorker, | 54 // |request_id| might be used for bi-directional messaging. |
| 55 IPC_MESSAGE_CONTROL4(EmbeddedWorkerContextMsg_SendMessageToWorker, |
| 53 int /* thread_id */, | 56 int /* thread_id */, |
| 54 int /* embedded_worker_id */, | 57 int /* embedded_worker_id */, |
| 58 int /* request_id */, |
| 55 IPC::Message /* message */) | 59 IPC::Message /* message */) |
| OLD | NEW |