| 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/public/common/web_preferences.h" | 11 #include "content/public/common/web_preferences.h" |
| 12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
| 13 #include "ipc/ipc_message_macros.h" | 13 #include "ipc/ipc_message_macros.h" |
| 14 #include "ipc/ipc_param_traits.h" | 14 #include "ipc/ipc_param_traits.h" |
| 15 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 16 | 16 |
| 17 #undef IPC_MESSAGE_EXPORT | 17 #undef IPC_MESSAGE_EXPORT |
| 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
| 19 | 19 |
| 20 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart | 20 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart |
| 21 | 21 |
| 22 // Parameters structure for EmbeddedWorkerMsg_StartWorker. | 22 // Parameters structure for EmbeddedWorkerMsg_StartWorker. |
| 23 IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params) | 23 IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params) |
| 24 IPC_STRUCT_MEMBER(int, embedded_worker_id) | 24 IPC_STRUCT_MEMBER(int, embedded_worker_id) |
| 25 IPC_STRUCT_MEMBER(int64_t, service_worker_version_id) | 25 IPC_STRUCT_MEMBER(int64_t, service_worker_version_id) |
| 26 IPC_STRUCT_MEMBER(GURL, scope) | 26 IPC_STRUCT_MEMBER(GURL, scope) |
| 27 IPC_STRUCT_MEMBER(GURL, script_url) | 27 IPC_STRUCT_MEMBER(GURL, script_url) |
| 28 IPC_STRUCT_MEMBER(int, worker_devtools_agent_route_id) | 28 IPC_STRUCT_MEMBER(int, worker_devtools_agent_route_id) |
| 29 IPC_STRUCT_MEMBER(bool, pause_after_download) |
| 29 IPC_STRUCT_MEMBER(bool, wait_for_debugger) | 30 IPC_STRUCT_MEMBER(bool, wait_for_debugger) |
| 30 IPC_STRUCT_MEMBER(content::V8CacheOptions, v8_cache_options) | 31 IPC_STRUCT_MEMBER(content::V8CacheOptions, v8_cache_options) |
| 31 IPC_STRUCT_END() | 32 IPC_STRUCT_END() |
| 32 | 33 |
| 33 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. | 34 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. |
| 34 // The data members directly correspond to parameters of | 35 // The data members directly correspond to parameters of |
| 35 // WorkerMessagingProxy::reportConsoleMessage() | 36 // WorkerMessagingProxy::reportConsoleMessage() |
| 36 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) | 37 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) |
| 37 IPC_STRUCT_MEMBER(int, source_identifier) | 38 IPC_STRUCT_MEMBER(int, source_identifier) |
| 38 IPC_STRUCT_MEMBER(int, message_level) | 39 IPC_STRUCT_MEMBER(int, message_level) |
| 39 IPC_STRUCT_MEMBER(base::string16, message) | 40 IPC_STRUCT_MEMBER(base::string16, message) |
| 40 IPC_STRUCT_MEMBER(int, line_number) | 41 IPC_STRUCT_MEMBER(int, line_number) |
| 41 IPC_STRUCT_MEMBER(GURL, source_url) | 42 IPC_STRUCT_MEMBER(GURL, source_url) |
| 42 IPC_STRUCT_END() | 43 IPC_STRUCT_END() |
| 43 | 44 |
| 44 // Browser -> Renderer message to create a new embedded worker context. | 45 // Browser -> Renderer message to create a new embedded worker context. |
| 45 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker, | 46 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker, |
| 46 EmbeddedWorkerMsg_StartWorker_Params /* params */) | 47 EmbeddedWorkerMsg_StartWorker_Params /* params */) |
| 47 | 48 |
| 49 // Browser -> Renderer message to resume a worker that has been started |
| 50 // with the pause_after_download option. |
| 51 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_ResumeAfterDownload, |
| 52 int /* embedded_worker_id */) |
| 53 |
| 48 // Browser -> Renderer message to stop (terminate) the embedded worker. | 54 // Browser -> Renderer message to stop (terminate) the embedded worker. |
| 49 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, | 55 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, |
| 50 int /* embedded_worker_id */) | 56 int /* embedded_worker_id */) |
| 51 | 57 |
| 52 // Renderer -> Browser message to indicate that the worker is ready for | 58 // Renderer -> Browser message to indicate that the worker is ready for |
| 53 // inspection. | 59 // inspection. |
| 54 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, | 60 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, |
| 55 int /* embedded_worker_id */) | 61 int /* embedded_worker_id */) |
| 56 | 62 |
| 57 // Renderer -> Browser message to indicate that the worker has loaded the | 63 // Renderer -> Browser message to indicate that the worker has loaded the |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 // for this for easier cross-thread message dispatching. | 110 // for this for easier cross-thread message dispatching. |
| 105 | 111 |
| 106 #undef IPC_MESSAGE_START | 112 #undef IPC_MESSAGE_START |
| 107 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 113 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
| 108 | 114 |
| 109 // Browser -> Renderer message to send message. | 115 // Browser -> Renderer message to send message. |
| 110 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 116 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
| 111 int /* thread_id */, | 117 int /* thread_id */, |
| 112 int /* embedded_worker_id */, | 118 int /* embedded_worker_id */, |
| 113 IPC::Message /* message */) | 119 IPC::Message /* message */) |
| OLD | NEW |