| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 bool /* success */) | 83 bool /* success */) |
| 84 | 84 |
| 85 // Renderer -> Browser message to indicate that the worker is started. | 85 // Renderer -> Browser message to indicate that the worker is started. |
| 86 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStarted, | 86 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStarted, |
| 87 int /* embedded_worker_id */) | 87 int /* embedded_worker_id */) |
| 88 | 88 |
| 89 // Renderer -> Browser message to indicate that the worker is stopped. | 89 // Renderer -> Browser message to indicate that the worker is stopped. |
| 90 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, | 90 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, |
| 91 int /* embedded_worker_id */) | 91 int /* embedded_worker_id */) |
| 92 | 92 |
| 93 // Renderer -> Browser message to count an API use. |feature| must be one of the |
| 94 // values from blink::UseCounter::Feature enum. |
| 95 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_CountFeature, |
| 96 int64_t /* service_worker_version_id */, |
| 97 uint32_t /* feature */) |
| 98 |
| 93 // Renderer -> Browser message to report an exception. | 99 // Renderer -> Browser message to report an exception. |
| 94 IPC_MESSAGE_CONTROL5(EmbeddedWorkerHostMsg_ReportException, | 100 IPC_MESSAGE_CONTROL5(EmbeddedWorkerHostMsg_ReportException, |
| 95 int /* embedded_worker_id */, | 101 int /* embedded_worker_id */, |
| 96 base::string16 /* error_message */, | 102 base::string16 /* error_message */, |
| 97 int /* line_number */, | 103 int /* line_number */, |
| 98 int /* column_number */, | 104 int /* column_number */, |
| 99 GURL /* source_url */) | 105 GURL /* source_url */) |
| 100 | 106 |
| 101 // Renderer -> Browser message to report console message. | 107 // Renderer -> Browser message to report console message. |
| 102 IPC_MESSAGE_CONTROL2( | 108 IPC_MESSAGE_CONTROL2( |
| 103 EmbeddedWorkerHostMsg_ReportConsoleMessage, | 109 EmbeddedWorkerHostMsg_ReportConsoleMessage, |
| 104 int /* embedded_worker_id */, | 110 int /* embedded_worker_id */, |
| 105 EmbeddedWorkerHostMsg_ReportConsoleMessage_Params /* params */) | 111 EmbeddedWorkerHostMsg_ReportConsoleMessage_Params /* params */) |
| 106 | 112 |
| 107 // --------------------------------------------------------------------------- | 113 // --------------------------------------------------------------------------- |
| 108 // For EmbeddedWorkerContext related messages, which are directly sent from | 114 // For EmbeddedWorkerContext related messages, which are directly sent from |
| 109 // browser to the worker thread in the child process. We use a new message class | 115 // browser to the worker thread in the child process. We use a new message class |
| 110 // for this for easier cross-thread message dispatching. | 116 // for this for easier cross-thread message dispatching. |
| 111 | 117 |
| 112 #undef IPC_MESSAGE_START | 118 #undef IPC_MESSAGE_START |
| 113 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 119 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
| 114 | 120 |
| 115 // Browser -> Renderer message to send message. | 121 // Browser -> Renderer message to send message. |
| 116 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 122 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
| 117 int /* thread_id */, | 123 int /* thread_id */, |
| 118 int /* embedded_worker_id */, | 124 int /* embedded_worker_id */, |
| 119 IPC::Message /* message */) | 125 IPC::Message /* message */) |
| OLD | NEW |