| 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) | |
| 30 IPC_STRUCT_MEMBER(bool, wait_for_debugger) | 29 IPC_STRUCT_MEMBER(bool, wait_for_debugger) |
| 31 IPC_STRUCT_MEMBER(content::V8CacheOptions, v8_cache_options) | 30 IPC_STRUCT_MEMBER(content::V8CacheOptions, v8_cache_options) |
| 32 IPC_STRUCT_END() | 31 IPC_STRUCT_END() |
| 33 | 32 |
| 34 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. | 33 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. |
| 35 // The data members directly correspond to parameters of | 34 // The data members directly correspond to parameters of |
| 36 // WorkerMessagingProxy::reportConsoleMessage() | 35 // WorkerMessagingProxy::reportConsoleMessage() |
| 37 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) | 36 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) |
| 38 IPC_STRUCT_MEMBER(int, source_identifier) | 37 IPC_STRUCT_MEMBER(int, source_identifier) |
| 39 IPC_STRUCT_MEMBER(int, message_level) | 38 IPC_STRUCT_MEMBER(int, message_level) |
| 40 IPC_STRUCT_MEMBER(base::string16, message) | 39 IPC_STRUCT_MEMBER(base::string16, message) |
| 41 IPC_STRUCT_MEMBER(int, line_number) | 40 IPC_STRUCT_MEMBER(int, line_number) |
| 42 IPC_STRUCT_MEMBER(GURL, source_url) | 41 IPC_STRUCT_MEMBER(GURL, source_url) |
| 43 IPC_STRUCT_END() | 42 IPC_STRUCT_END() |
| 44 | 43 |
| 45 // Browser -> Renderer message to create a new embedded worker context. | 44 // Browser -> Renderer message to create a new embedded worker context. |
| 46 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker, | 45 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker, |
| 47 EmbeddedWorkerMsg_StartWorker_Params /* params */) | 46 EmbeddedWorkerMsg_StartWorker_Params /* params */) |
| 48 | 47 |
| 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 | |
| 54 // Browser -> Renderer message to stop (terminate) the embedded worker. | 48 // Browser -> Renderer message to stop (terminate) the embedded worker. |
| 55 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, | 49 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, |
| 56 int /* embedded_worker_id */) | 50 int /* embedded_worker_id */) |
| 57 | 51 |
| 58 // Renderer -> Browser message to indicate that the worker is ready for | 52 // Renderer -> Browser message to indicate that the worker is ready for |
| 59 // inspection. | 53 // inspection. |
| 60 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, | 54 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, |
| 61 int /* embedded_worker_id */) | 55 int /* embedded_worker_id */) |
| 62 | 56 |
| 63 // Renderer -> Browser message to indicate that the worker has loaded the | 57 // Renderer -> Browser message to indicate that the worker has loaded the |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 // for this for easier cross-thread message dispatching. | 104 // for this for easier cross-thread message dispatching. |
| 111 | 105 |
| 112 #undef IPC_MESSAGE_START | 106 #undef IPC_MESSAGE_START |
| 113 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 107 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
| 114 | 108 |
| 115 // Browser -> Renderer message to send message. | 109 // Browser -> Renderer message to send message. |
| 116 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 110 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
| 117 int /* thread_id */, | 111 int /* thread_id */, |
| 118 int /* embedded_worker_id */, | 112 int /* embedded_worker_id */, |
| 119 IPC::Message /* message */) | 113 IPC::Message /* message */) |
| OLD | NEW |