Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: content/common/service_worker/embedded_worker_messages.h

Issue 252633003: Introduce worker_devtools_agent_route_id for EmbeddedWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "ipc/ipc_message.h" 9 #include "ipc/ipc_message.h"
10 #include "ipc/ipc_message_macros.h" 10 #include "ipc/ipc_message_macros.h"
11 #include "ipc/ipc_param_traits.h" 11 #include "ipc/ipc_param_traits.h"
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 #undef IPC_MESSAGE_EXPORT 14 #undef IPC_MESSAGE_EXPORT
15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 15 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
16 16
17 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart 17 #define IPC_MESSAGE_START EmbeddedWorkerMsgStart
18 18
19 // Parameters structure for EmbeddedWorkerMsg_StartWorker.
20 IPC_STRUCT_BEGIN(EmbeddedWorkerMsg_StartWorker_Params)
21 IPC_STRUCT_MEMBER(int, embedded_worker_id)
22 IPC_STRUCT_MEMBER(int64, service_worker_version_id)
23 IPC_STRUCT_MEMBER(GURL, scope)
24 IPC_STRUCT_MEMBER(GURL, script_url)
25 IPC_STRUCT_MEMBER(int, worker_devtools_agent_route_id)
26 IPC_STRUCT_END()
27
19 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage. 28 // Parameters structure for EmbeddedWorkerHostMsg_ReportConsoleMessage.
20 // The data members directly correspond to parameters of 29 // The data members directly correspond to parameters of
21 // WorkerMessagingProxy::reportConsoleMessage() 30 // WorkerMessagingProxy::reportConsoleMessage()
22 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params) 31 IPC_STRUCT_BEGIN(EmbeddedWorkerHostMsg_ReportConsoleMessage_Params)
23 IPC_STRUCT_MEMBER(int, source_identifier) 32 IPC_STRUCT_MEMBER(int, source_identifier)
24 IPC_STRUCT_MEMBER(int, message_level) 33 IPC_STRUCT_MEMBER(int, message_level)
25 IPC_STRUCT_MEMBER(base::string16, message) 34 IPC_STRUCT_MEMBER(base::string16, message)
26 IPC_STRUCT_MEMBER(int, line_number) 35 IPC_STRUCT_MEMBER(int, line_number)
27 IPC_STRUCT_MEMBER(GURL, source_url) 36 IPC_STRUCT_MEMBER(GURL, source_url)
28 IPC_STRUCT_END() 37 IPC_STRUCT_END()
29 38
30 // Browser -> Renderer message to create a new embedded worker context. 39 // Browser -> Renderer message to create a new embedded worker context.
31 IPC_MESSAGE_CONTROL4(EmbeddedWorkerMsg_StartWorker, 40 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker,
32 int /* embedded_worker_id */, 41 EmbeddedWorkerMsg_StartWorker_Params /* params */)
33 int64 /* service_worker_version_id */,
34 GURL /* scope */,
35 GURL /* script_url */)
36 42
37 // Browser -> Renderer message to stop (terminate) the embedded worker. 43 // Browser -> Renderer message to stop (terminate) the embedded worker.
38 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, 44 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker,
39 int /* embedded_worker_id */) 45 int /* embedded_worker_id */)
40 46
41 // Renderer -> Browser message to indicate that the worker is started. 47 // Renderer -> Browser message to indicate that the worker is started.
42 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, 48 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted,
43 int /* thread_id */, 49 int /* thread_id */,
44 int /* embedded_worker_id */) 50 int /* embedded_worker_id */)
45 51
(...skipping 21 matching lines...) Expand all
67 // for this for easier cross-thread message dispatching. 73 // for this for easier cross-thread message dispatching.
68 74
69 #undef IPC_MESSAGE_START 75 #undef IPC_MESSAGE_START
70 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart 76 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart
71 77
72 // Browser -> Renderer message to send message. 78 // Browser -> Renderer message to send message.
73 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, 79 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker,
74 int /* thread_id */, 80 int /* thread_id */,
75 int /* embedded_worker_id */, 81 int /* embedded_worker_id */,
76 IPC::Message /* message */) 82 IPC::Message /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698