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/common/service_worker/embedded_worker_settings.h" |
12 #include "content/common/service_worker/embedded_worker_start_params.h" | 12 #include "content/common/service_worker/embedded_worker_start_params.h" |
13 #include "content/public/common/console_message_level.h" | 13 #include "content/public/common/console_message_level.h" |
14 #include "content/public/common/web_preferences.h" | 14 #include "content/public/common/web_preferences.h" |
15 #include "ipc/ipc_message.h" | 15 #include "ipc/ipc_message.h" |
16 #include "ipc/ipc_message_macros.h" | 16 #include "ipc/ipc_message_macros.h" |
17 #include "ipc/ipc_param_traits.h" | 17 #include "ipc/ipc_param_traits.h" |
18 #include "url/gurl.h" | 18 #include "url/gurl.h" |
19 | 19 |
20 #undef IPC_MESSAGE_EXPORT | 20 #undef IPC_MESSAGE_EXPORT |
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
22 | 22 |
23 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart | 23 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart |
24 | 24 |
25 IPC_STRUCT_TRAITS_BEGIN(content::EmbeddedWorkerSettings) | 25 IPC_STRUCT_TRAITS_BEGIN(content::EmbeddedWorkerSettings) |
26 IPC_STRUCT_TRAITS_MEMBER(v8_cache_options) | 26 IPC_STRUCT_TRAITS_MEMBER(v8_cache_options) |
27 IPC_STRUCT_TRAITS_MEMBER(data_saver_enabled) | 27 IPC_STRUCT_TRAITS_MEMBER(data_saver_flag) |
28 IPC_STRUCT_TRAITS_END() | 28 IPC_STRUCT_TRAITS_END() |
29 | 29 |
30 // Parameters structure for EmbeddedWorkerMsg_StartWorker. | 30 // Parameters structure for EmbeddedWorkerMsg_StartWorker. |
31 IPC_STRUCT_TRAITS_BEGIN(content::EmbeddedWorkerStartParams) | 31 IPC_STRUCT_TRAITS_BEGIN(content::EmbeddedWorkerStartParams) |
32 IPC_STRUCT_TRAITS_MEMBER(embedded_worker_id) | 32 IPC_STRUCT_TRAITS_MEMBER(embedded_worker_id) |
33 IPC_STRUCT_TRAITS_MEMBER(service_worker_version_id) | 33 IPC_STRUCT_TRAITS_MEMBER(service_worker_version_id) |
34 IPC_STRUCT_TRAITS_MEMBER(scope) | 34 IPC_STRUCT_TRAITS_MEMBER(scope) |
35 IPC_STRUCT_TRAITS_MEMBER(script_url) | 35 IPC_STRUCT_TRAITS_MEMBER(script_url) |
36 IPC_STRUCT_TRAITS_MEMBER(worker_devtools_agent_route_id) | 36 IPC_STRUCT_TRAITS_MEMBER(worker_devtools_agent_route_id) |
37 IPC_STRUCT_TRAITS_MEMBER(pause_after_download) | 37 IPC_STRUCT_TRAITS_MEMBER(pause_after_download) |
(...skipping 14 matching lines...) Expand all Loading... |
52 // for this for easier cross-thread message dispatching. | 52 // for this for easier cross-thread message dispatching. |
53 | 53 |
54 #undef IPC_MESSAGE_START | 54 #undef IPC_MESSAGE_START |
55 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 55 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
56 | 56 |
57 // Browser -> Renderer message to send message. | 57 // Browser -> Renderer message to send message. |
58 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 58 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
59 int /* thread_id */, | 59 int /* thread_id */, |
60 int /* embedded_worker_id */, | 60 int /* embedded_worker_id */, |
61 IPC::Message /* message */) | 61 IPC::Message /* message */) |
OLD | NEW |