| 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 |
| 11 #include "content/common/service_worker/embedded_worker_settings.h" | 11 #include "content/common/service_worker/embedded_worker_settings.h" |
| 12 #include "content/public/common/console_message_level.h" |
| 12 #include "content/public/common/web_preferences.h" | 13 #include "content/public/common/web_preferences.h" |
| 13 #include "ipc/ipc_message.h" | 14 #include "ipc/ipc_message.h" |
| 14 #include "ipc/ipc_message_macros.h" | 15 #include "ipc/ipc_message_macros.h" |
| 15 #include "ipc/ipc_param_traits.h" | 16 #include "ipc/ipc_param_traits.h" |
| 16 #include "url/gurl.h" | 17 #include "url/gurl.h" |
| 17 | 18 |
| 18 #undef IPC_MESSAGE_EXPORT | 19 #undef IPC_MESSAGE_EXPORT |
| 19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 20 | 21 |
| 21 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart | 22 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 56 |
| 56 // Browser -> Renderer message to resume a worker that has been started | 57 // Browser -> Renderer message to resume a worker that has been started |
| 57 // with the pause_after_download option. | 58 // with the pause_after_download option. |
| 58 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_ResumeAfterDownload, | 59 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_ResumeAfterDownload, |
| 59 int /* embedded_worker_id */) | 60 int /* embedded_worker_id */) |
| 60 | 61 |
| 61 // Browser -> Renderer message to stop (terminate) the embedded worker. | 62 // Browser -> Renderer message to stop (terminate) the embedded worker. |
| 62 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, | 63 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, |
| 63 int /* embedded_worker_id */) | 64 int /* embedded_worker_id */) |
| 64 | 65 |
| 66 // Browser -> Renderer message to add message to the devtools console. |
| 67 IPC_MESSAGE_CONTROL3(EmbeddedWorkerMsg_AddMessageToConsole, |
| 68 int /* embedded_worker_id */, |
| 69 content::ConsoleMessageLevel /* level */, |
| 70 std::string /* message */) |
| 71 |
| 65 // Renderer -> Browser message to indicate that the worker is ready for | 72 // Renderer -> Browser message to indicate that the worker is ready for |
| 66 // inspection. | 73 // inspection. |
| 67 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, | 74 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, |
| 68 int /* embedded_worker_id */) | 75 int /* embedded_worker_id */) |
| 69 | 76 |
| 70 // Renderer -> Browser message to indicate that the worker has loaded the | 77 // Renderer -> Browser message to indicate that the worker has loaded the |
| 71 // script. | 78 // script. |
| 72 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoaded, | 79 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoaded, |
| 73 int /* embedded_worker_id */) | 80 int /* embedded_worker_id */) |
| 74 | 81 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 // for this for easier cross-thread message dispatching. | 124 // for this for easier cross-thread message dispatching. |
| 118 | 125 |
| 119 #undef IPC_MESSAGE_START | 126 #undef IPC_MESSAGE_START |
| 120 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 127 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
| 121 | 128 |
| 122 // Browser -> Renderer message to send message. | 129 // Browser -> Renderer message to send message. |
| 123 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 130 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
| 124 int /* thread_id */, | 131 int /* thread_id */, |
| 125 int /* embedded_worker_id */, | 132 int /* embedded_worker_id */, |
| 126 IPC::Message /* message */) | 133 IPC::Message /* message */) |
| OLD | NEW |