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 "content/public/common/web_preferences.h" |
10 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
11 #include "ipc/ipc_message_macros.h" | 11 #include "ipc/ipc_message_macros.h" |
12 #include "ipc/ipc_param_traits.h" | 12 #include "ipc/ipc_param_traits.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
15 #undef IPC_MESSAGE_EXPORT | 15 #undef IPC_MESSAGE_EXPORT |
16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 16 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
17 | 17 |
18 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart | 18 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart |
19 | 19 |
20 // Parameters structure for EmbeddedWorkerMsg_StartWorker. | |
21 IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params) | |
22 IPC_STRUCT_MEMBER(int, embedded_worker_id) | |
23 IPC_STRUCT_MEMBER(int64, service_worker_version_id) | |
24 IPC_STRUCT_MEMBER(GURL, scope) | |
25 IPC_STRUCT_MEMBER(GURL, script_url) | |
26 IPC_STRUCT_MEMBER(int, worker_devtools_agent_route_id) | |
27 IPC_STRUCT_MEMBER(bool, wait_for_debugger) | |
28 IPC_STRUCT_MEMBER(content::V8CacheOptions, v8_cache_options) | |
29 IPC_STRUCT_END() | |
30 | |
31 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. | 20 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. |
32 // The data members directly correspond to parameters of | 21 // The data members directly correspond to parameters of |
33 // WorkerMessagingProxy::reportConsoleMessage() | 22 // WorkerMessagingProxy::reportConsoleMessage() |
34 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) | 23 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) |
35 IPC_STRUCT_MEMBER(int, source_identifier) | 24 IPC_STRUCT_MEMBER(int, source_identifier) |
36 IPC_STRUCT_MEMBER(int, message_level) | 25 IPC_STRUCT_MEMBER(int, message_level) |
37 IPC_STRUCT_MEMBER(base::string16, message) | 26 IPC_STRUCT_MEMBER(base::string16, message) |
38 IPC_STRUCT_MEMBER(int, line_number) | 27 IPC_STRUCT_MEMBER(int, line_number) |
39 IPC_STRUCT_MEMBER(GURL, source_url) | 28 IPC_STRUCT_MEMBER(GURL, source_url) |
40 IPC_STRUCT_END() | 29 IPC_STRUCT_END() |
41 | 30 |
42 // Browser -> Renderer message to create a new embedded worker context. | |
43 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker, | |
44 EmbeddedWorkerMsg_StartWorker_Params /* params */) | |
45 | |
46 // Browser -> Renderer message to stop (terminate) the embedded worker. | |
47 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, | |
48 int /* embedded_worker_id */) | |
49 | |
50 // Renderer -> Browser message to indicate that the worker is ready for | 31 // Renderer -> Browser message to indicate that the worker is ready for |
51 // inspection. | 32 // inspection. |
52 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, | 33 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, |
53 int /* embedded_worker_id */) | 34 int /* embedded_worker_id */) |
54 | 35 |
55 // Renderer -> Browser message to indicate that the worker has loadedd the | 36 // Renderer -> Browser message to indicate that the worker has loadedd the |
56 // script. | 37 // script. |
57 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_WorkerScriptLoaded, | 38 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_WorkerScriptLoaded, |
58 int /* embedded_worker_id */, | 39 int /* embedded_worker_id */, |
59 int /* thread_id */, | 40 int /* thread_id */, |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // for this for easier cross-thread message dispatching. | 79 // for this for easier cross-thread message dispatching. |
99 | 80 |
100 #undef IPC_MESSAGE_START | 81 #undef IPC_MESSAGE_START |
101 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart | 82 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart |
102 | 83 |
103 // Browser -> Renderer message to send message. | 84 // Browser -> Renderer message to send message. |
104 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, | 85 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, |
105 int /* thread_id */, | 86 int /* thread_id */, |
106 int /* embedded_worker_id */, | 87 int /* embedded_worker_id */, |
107 IPC::Message /* message */) | 88 IPC::Message /* message */) |
OLD | NEW |