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 <string> | 7 #include <string> |
8 | 8 |
| 9 #include "content/public/common/web_preferences.h" |
9 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
10 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
11 #include "ipc/ipc_param_traits.h" | 12 #include "ipc/ipc_param_traits.h" |
12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
13 | 14 |
14 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
16 | 17 |
17 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart | 18 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart |
18 | 19 |
19 // Parameters structure for EmbeddedWorkerMsg_StartWorker. | 20 // Parameters structure for EmbeddedWorkerMsg_StartWorker. |
20 IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params) | 21 IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params) |
21 IPC_STRUCT_MEMBER(int, embedded_worker_id) | 22 IPC_STRUCT_MEMBER(int, embedded_worker_id) |
22 IPC_STRUCT_MEMBER(int64, service_worker_version_id) | 23 IPC_STRUCT_MEMBER(int64, service_worker_version_id) |
23 IPC_STRUCT_MEMBER(GURL, scope) | 24 IPC_STRUCT_MEMBER(GURL, scope) |
24 IPC_STRUCT_MEMBER(GURL, script_url) | 25 IPC_STRUCT_MEMBER(GURL, script_url) |
25 IPC_STRUCT_MEMBER(int, worker_devtools_agent_route_id) | 26 IPC_STRUCT_MEMBER(int, worker_devtools_agent_route_id) |
26 IPC_STRUCT_MEMBER(bool, pause_after_download) | 27 IPC_STRUCT_MEMBER(bool, pause_after_download) |
27 IPC_STRUCT_MEMBER(bool, wait_for_debugger) | 28 IPC_STRUCT_MEMBER(bool, wait_for_debugger) |
| 29 IPC_STRUCT_MEMBER(content::V8CacheOptions, v8_cache_options) |
28 IPC_STRUCT_END() | 30 IPC_STRUCT_END() |
29 | 31 |
30 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. | 32 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. |
31 // The data members directly correspond to parameters of | 33 // The data members directly correspond to parameters of |
32 // WorkerMessagingProxy::reportConsoleMessage() | 34 // WorkerMessagingProxy::reportConsoleMessage() |
33 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) | 35 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) |
34 IPC_STRUCT_MEMBER(int, source_identifier) | 36 IPC_STRUCT_MEMBER(int, source_identifier) |
35 IPC_STRUCT_MEMBER(int, message_level) | 37 IPC_STRUCT_MEMBER(int, message_level) |
36 IPC_STRUCT_MEMBER(base::string16, message) | 38 IPC_STRUCT_MEMBER(base::string16, message) |
37 IPC_STRUCT_MEMBER(int, line_number) | 39 IPC_STRUCT_MEMBER(int, line_number) |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // for this for easier cross-thread message dispatching. | 109 // for this for easier cross-thread message dispatching. |
108 | 110 |
109 #undef IPC_MESSAGE_START | 111 #undef IPC_MESSAGE_START |
110 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 112 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
111 | 113 |
112 // Browser -> Renderer message to send message. | 114 // Browser -> Renderer message to send message. |
113 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 115 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
114 int /* thread_id */, | 116 int /* thread_id */, |
115 int /* embedded_worker_id */, | 117 int /* embedded_worker_id */, |
116 IPC::Message /* message */) | 118 IPC::Message /* message */) |
OLD | NEW |