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/public/common/web_preferences.h" | 12 #include "content/public/common/web_preferences.h" |
12 #include "ipc/ipc_message.h" | 13 #include "ipc/ipc_message.h" |
13 #include "ipc/ipc_message_macros.h" | 14 #include "ipc/ipc_message_macros.h" |
14 #include "ipc/ipc_param_traits.h" | 15 #include "ipc/ipc_param_traits.h" |
15 #include "url/gurl.h" | 16 #include "url/gurl.h" |
16 | 17 |
17 #undef IPC_MESSAGE_EXPORT | 18 #undef IPC_MESSAGE_EXPORT |
18 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 19 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
19 | 20 |
20 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart | 21 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart |
21 | 22 |
| 23 IPC_STRUCT_TRAITS_BEGIN(content::EmbeddedWorkerSettings) |
| 24 IPC_STRUCT_TRAITS_MEMBER(v8_cache_options) |
| 25 IPC_STRUCT_TRAITS_MEMBER(data_saver_enabled) |
| 26 IPC_STRUCT_TRAITS_END() |
| 27 |
22 // Parameters structure for EmbeddedWorkerMsg_StartWorker. | 28 // Parameters structure for EmbeddedWorkerMsg_StartWorker. |
23 IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params) | 29 IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params) |
24 IPC_STRUCT_MEMBER(int, embedded_worker_id) | 30 IPC_STRUCT_MEMBER(int, embedded_worker_id) |
25 IPC_STRUCT_MEMBER(int64_t, service_worker_version_id) | 31 IPC_STRUCT_MEMBER(int64_t, service_worker_version_id) |
26 IPC_STRUCT_MEMBER(GURL, scope) | 32 IPC_STRUCT_MEMBER(GURL, scope) |
27 IPC_STRUCT_MEMBER(GURL, script_url) | 33 IPC_STRUCT_MEMBER(GURL, script_url) |
28 IPC_STRUCT_MEMBER(int, worker_devtools_agent_route_id) | 34 IPC_STRUCT_MEMBER(int, worker_devtools_agent_route_id) |
29 IPC_STRUCT_MEMBER(bool, pause_after_download) | 35 IPC_STRUCT_MEMBER(bool, pause_after_download) |
30 IPC_STRUCT_MEMBER(bool, wait_for_debugger) | 36 IPC_STRUCT_MEMBER(bool, wait_for_debugger) |
31 IPC_STRUCT_MEMBER(content::V8CacheOptions, v8_cache_options) | 37 IPC_STRUCT_MEMBER(content::EmbeddedWorkerSettings, settings) |
32 IPC_STRUCT_END() | 38 IPC_STRUCT_END() |
33 | 39 |
34 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. | 40 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. |
35 // The data members directly correspond to parameters of | 41 // The data members directly correspond to parameters of |
36 // WorkerMessagingProxy::reportConsoleMessage() | 42 // WorkerMessagingProxy::reportConsoleMessage() |
37 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) | 43 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) |
38 IPC_STRUCT_MEMBER(int, source_identifier) | 44 IPC_STRUCT_MEMBER(int, source_identifier) |
39 IPC_STRUCT_MEMBER(int, message_level) | 45 IPC_STRUCT_MEMBER(int, message_level) |
40 IPC_STRUCT_MEMBER(base::string16, message) | 46 IPC_STRUCT_MEMBER(base::string16, message) |
41 IPC_STRUCT_MEMBER(int, line_number) | 47 IPC_STRUCT_MEMBER(int, line_number) |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |