| 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 26 matching lines...) Expand all Loading... |
| 37 IPC_STRUCT_END() | 37 IPC_STRUCT_END() |
| 38 | 38 |
| 39 // Browser -> Renderer message to create a new embedded worker context. | 39 // Browser -> Renderer message to create a new embedded worker context. |
| 40 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker, | 40 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker, |
| 41 EmbeddedWorkerMsg_StartWorker_Params /* params */) | 41 EmbeddedWorkerMsg_StartWorker_Params /* params */) |
| 42 | 42 |
| 43 // Browser -> Renderer message to stop (terminate) the embedded worker. | 43 // Browser -> Renderer message to stop (terminate) the embedded worker. |
| 44 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, | 44 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, |
| 45 int /* embedded_worker_id */) | 45 int /* embedded_worker_id */) |
| 46 | 46 |
| 47 // Renderer -> Browser message to indicate that the worker has loadedd the |
| 48 // script. |
| 49 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoaded, |
| 50 int /* embedded_worker_id */) |
| 51 |
| 47 // Renderer -> Browser message to indicate that the worker is started. | 52 // Renderer -> Browser message to indicate that the worker is started. |
| 48 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, | 53 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, |
| 49 int /* thread_id */, | 54 int /* thread_id */, |
| 50 int /* embedded_worker_id */) | 55 int /* embedded_worker_id */) |
| 51 | 56 |
| 52 // Renderer -> Browser message to indicate that the worker is stopped. | 57 // Renderer -> Browser message to indicate that the worker is stopped. |
| 53 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, | 58 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, |
| 54 int /* embedded_worker_id */) | 59 int /* embedded_worker_id */) |
| 55 | 60 |
| 56 // Renderer -> Browser message to report an exception. | 61 // Renderer -> Browser message to report an exception. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 73 // for this for easier cross-thread message dispatching. | 78 // for this for easier cross-thread message dispatching. |
| 74 | 79 |
| 75 #undef IPC_MESSAGE_START | 80 #undef IPC_MESSAGE_START |
| 76 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 81 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
| 77 | 82 |
| 78 // Browser -> Renderer message to send message. | 83 // Browser -> Renderer message to send message. |
| 79 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 84 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
| 80 int /* thread_id */, | 85 int /* thread_id */, |
| 81 int /* embedded_worker_id */, | 86 int /* embedded_worker_id */, |
| 82 IPC::Message /* message */) | 87 IPC::Message /* message */) |
| OLD | NEW |