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 17 matching lines...) Expand all Loading... | |
28 | 28 |
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 // |request_id| might be used for bi-directional messaging. | 39 // |request_id| might be used for bi-directional messaging. |
40 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_SendMessageToBrowser, | 40 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_SendMessageToBrowser, |
41 int /* embedded_worker_id */, | 41 int /* embedded_worker_id */, |
42 int /* request_id */, | 42 int /* request_id */, |
43 IPC::Message /* message */) | 43 IPC::Message /* message */) |
44 | 44 |
45 // Renderer -> Browser message to report an exception. | |
46 IPC_MESSAGE_CONTROL5(EmbeddedWorkerHostMsg_ReportException, | |
47 int /* embedded_worker_id */, | |
48 base::string16 /* error_message */, | |
49 int /* line_number */, | |
50 int /* column_number */, | |
51 base::string16 /* source_url */) | |
Tom Sepez
2014/04/07 23:56:19
Would it be possible to pass a GURL here instead o
nhiroki
2014/04/08 08:44:18
Done.
| |
52 | |
45 // --------------------------------------------------------------------------- | 53 // --------------------------------------------------------------------------- |
46 // For EmbeddedWorkerContext related messages, which are directly sent from | 54 // For EmbeddedWorkerContext related messages, which are directly sent from |
47 // browser to the worker thread in the child process. We use a new message class | 55 // browser to the worker thread in the child process. We use a new message class |
48 // for this for easier cross-thread message dispatching. | 56 // for this for easier cross-thread message dispatching. |
49 | 57 |
50 #undef IPC_MESSAGE_START | 58 #undef IPC_MESSAGE_START |
51 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 59 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
52 | 60 |
53 // Browser -> Renderer message to send message. | 61 // Browser -> Renderer message to send message. |
54 // |request_id| might be used for bi-directional messaging. | 62 // |request_id| might be used for bi-directional messaging. |
55 IPC_MESSAGE_CONTROL4(EmbeddedWorkerContextMsg_SendMessageToWorker, | 63 IPC_MESSAGE_CONTROL4(EmbeddedWorkerContextMsg_SendMessageToWorker, |
56 int /* thread_id */, | 64 int /* thread_id */, |
57 int /* embedded_worker_id */, | 65 int /* embedded_worker_id */, |
58 int /* request_id */, | 66 int /* request_id */, |
59 IPC::Message /* message */) | 67 IPC::Message /* message */) |
OLD | NEW |