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, wait_for_debugger) | 35 IPC_STRUCT_MEMBER(bool, wait_for_debugger) |
30 IPC_STRUCT_MEMBER(content::V8CacheOptions, v8_cache_options) | 36 IPC_STRUCT_MEMBER(content::EmbeddedWorkerSettings, settings) |
31 IPC_STRUCT_END() | 37 IPC_STRUCT_END() |
32 | 38 |
33 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. | 39 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. |
34 // The data members directly correspond to parameters of | 40 // The data members directly correspond to parameters of |
35 // WorkerMessagingProxy::reportConsoleMessage() | 41 // WorkerMessagingProxy::reportConsoleMessage() |
36 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) | 42 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) |
37 IPC_STRUCT_MEMBER(int, source_identifier) | 43 IPC_STRUCT_MEMBER(int, source_identifier) |
38 IPC_STRUCT_MEMBER(int, message_level) | 44 IPC_STRUCT_MEMBER(int, message_level) |
39 IPC_STRUCT_MEMBER(base::string16, message) | 45 IPC_STRUCT_MEMBER(base::string16, message) |
40 IPC_STRUCT_MEMBER(int, line_number) | 46 IPC_STRUCT_MEMBER(int, line_number) |
(...skipping 63 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 |