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 |
| 52 // Renderer -> Browser message to indicate that the worker has failed to load |
| 53 // the script. |
| 54 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed, |
| 55 int /* embedded_worker_id */) |
| 56 |
47 // Renderer -> Browser message to indicate that the worker is started. | 57 // Renderer -> Browser message to indicate that the worker is started. |
48 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, | 58 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, |
49 int /* thread_id */, | 59 int /* thread_id */, |
50 int /* embedded_worker_id */) | 60 int /* embedded_worker_id */) |
51 | 61 |
52 // Renderer -> Browser message to indicate that the worker is stopped. | 62 // Renderer -> Browser message to indicate that the worker is stopped. |
53 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, | 63 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, |
54 int /* embedded_worker_id */) | 64 int /* embedded_worker_id */) |
55 | 65 |
56 // Renderer -> Browser message to report an exception. | 66 // Renderer -> Browser message to report an exception. |
(...skipping 16 matching lines...) Expand all Loading... |
73 // for this for easier cross-thread message dispatching. | 83 // for this for easier cross-thread message dispatching. |
74 | 84 |
75 #undef IPC_MESSAGE_START | 85 #undef IPC_MESSAGE_START |
76 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 86 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
77 | 87 |
78 // Browser -> Renderer message to send message. | 88 // Browser -> Renderer message to send message. |
79 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 89 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
80 int /* thread_id */, | 90 int /* thread_id */, |
81 int /* embedded_worker_id */, | 91 int /* embedded_worker_id */, |
82 IPC::Message /* message */) | 92 IPC::Message /* message */) |
OLD | NEW |