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

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

Issue 268753004: Add WorkerScriptLoaded message to support attaching DevTools while starting ServiceWorker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incorporated nasko's 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"
(...skipping 26 matching lines...) Expand all
37 IPC_STRUCT_END() 37 IPC_STRUCT_END()
38 38
39 // Browser -> Renderer message to create a new embedded worker context. 39 // Browser -> Renderer message to create a new embedded worker context.
40 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker, 40 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StartWorker,
41 EmbeddedWorkerMsg_StartWorker_Params /* params */) 41 EmbeddedWorkerMsg_StartWorker_Params /* params */)
42 42
43 // Browser -> Renderer message to stop (terminate) the embedded worker. 43 // Browser -> Renderer message to stop (terminate) the embedded worker.
44 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker, 44 IPC_MESSAGE_CONTROL1(EmbeddedWorkerMsg_StopWorker,
45 int /* embedded_worker_id */) 45 int /* embedded_worker_id */)
46 46
47 // Renderer -> Browser message to indicate that the worker has loadedd the
48 // script.
49 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoaded,
50 int /* embedded_worker_id */)
51
52 // Renderer -> Browser message to indicate that the worker has failed to load
53 // the script.
54 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed,
55 int /* embedded_worker_id */)
56
47 // Renderer -> Browser message to indicate that the worker is started. 57 // Renderer -> Browser message to indicate that the worker is started.
48 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted, 58 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerStarted,
49 int /* thread_id */, 59 int /* thread_id */,
50 int /* embedded_worker_id */) 60 int /* embedded_worker_id */)
51 61
52 // Renderer -> Browser message to indicate that the worker is stopped. 62 // Renderer -> Browser message to indicate that the worker is stopped.
53 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, 63 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped,
54 int /* embedded_worker_id */) 64 int /* embedded_worker_id */)
55 65
56 // Renderer -> Browser message to report an exception. 66 // Renderer -> Browser message to report an exception.
(...skipping 16 matching lines...) Expand all
73 // for this for easier cross-thread message dispatching. 83 // for this for easier cross-thread message dispatching.
74 84
75 #undef IPC_MESSAGE_START 85 #undef IPC_MESSAGE_START
76 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart 86 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart
77 87
78 // Browser -> Renderer message to send message. 88 // Browser -> Renderer message to send message.
79 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, 89 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker,
80 int /* thread_id */, 90 int /* thread_id */,
81 int /* embedded_worker_id */, 91 int /* embedded_worker_id */,
82 IPC::Message /* message */) 92 IPC::Message /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698