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 <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // The data members directly correspond to parameters of | 44 // The data members directly correspond to parameters of |
45 // WorkerMessagingProxy::reportConsoleMessage() | 45 // WorkerMessagingProxy::reportConsoleMessage() |
46 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) | 46 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) |
47 IPC_STRUCT_MEMBER(int, source_identifier) | 47 IPC_STRUCT_MEMBER(int, source_identifier) |
48 IPC_STRUCT_MEMBER(int, message_level) | 48 IPC_STRUCT_MEMBER(int, message_level) |
49 IPC_STRUCT_MEMBER(base::string16, message) | 49 IPC_STRUCT_MEMBER(base::string16, message) |
50 IPC_STRUCT_MEMBER(int, line_number) | 50 IPC_STRUCT_MEMBER(int, line_number) |
51 IPC_STRUCT_MEMBER(GURL, source_url) | 51 IPC_STRUCT_MEMBER(GURL, source_url) |
52 IPC_STRUCT_END() | 52 IPC_STRUCT_END() |
53 | 53 |
54 // Browser -> Renderer message to resume a worker that has been started | |
55 // with the pause_after_download option. | |
56 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_ResumeAfterDownload, | |
57 int /* embedded_worker_id */) | |
58 | |
59 // Browser -> Renderer message to stop (terminate) the embedded worker. | 54 // Browser -> Renderer message to stop (terminate) the embedded worker. |
60 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, | 55 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, |
61 int /* embedded_worker_id */) | 56 int /* embedded_worker_id */) |
62 | 57 |
63 // Browser -> Renderer message to add message to the devtools console. | |
64 IPC_MESSAGE_CONTROL3(EmbeddedWorkerMsg_AddMessageToConsole, | |
65 int /* embedded_worker_id */, | |
66 content::ConsoleMessageLevel /* level */, | |
67 std::string /* message */) | |
68 | |
69 // Renderer -> Browser message to indicate that the worker is ready for | 58 // Renderer -> Browser message to indicate that the worker is ready for |
70 // inspection. | 59 // inspection. |
71 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, | 60 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, |
72 int /* embedded_worker_id */) | 61 int /* embedded_worker_id */) |
73 | 62 |
74 // Renderer -> Browser message to indicate that the worker has loaded the | 63 // Renderer -> Browser message to indicate that the worker has loaded the |
75 // script. | 64 // script. |
76 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoaded, | 65 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoaded, |
77 int /* embedded_worker_id */) | 66 int /* embedded_worker_id */) |
78 | 67 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // for this for easier cross-thread message dispatching. | 110 // for this for easier cross-thread message dispatching. |
122 | 111 |
123 #undef IPC_MESSAGE_START | 112 #undef IPC_MESSAGE_START |
124 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 113 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
125 | 114 |
126 // Browser -> Renderer message to send message. | 115 // Browser -> Renderer message to send message. |
127 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 116 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
128 int /* thread_id */, | 117 int /* thread_id */, |
129 int /* embedded_worker_id */, | 118 int /* embedded_worker_id */, |
130 IPC::Message /* message */) | 119 IPC::Message /* message */) |
OLD | NEW |