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

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

Issue 855383006: ServiceWorker: Enqueue state change events until the worker thread gets ready (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix content_unittests Created 5 years, 11 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_DidPauseAfterDownload, 56 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_DidPauseAfterDownload,
57 int /* embedded_worker_id */) 57 int /* embedded_worker_id */)
58 58
59 // Renderer -> Browser message to indicate that the worker is ready for 59 // Renderer -> Browser message to indicate that the worker is ready for
60 // inspection. 60 // inspection.
61 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection, 61 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerReadyForInspection,
62 int /* embedded_worker_id */) 62 int /* embedded_worker_id */)
63 63
64 // Renderer -> Browser message to indicate that the worker has loadedd the 64 // Renderer -> Browser message to indicate that the worker has loadedd the
65 // script. 65 // script.
66 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerScriptLoaded, 66 IPC_MESSAGE_CONTROL3(EmbeddedWorkerHostMsg_WorkerScriptLoaded,
67 int /* embedded_worker_id */, 67 int /* embedded_worker_id */,
68 int /* thread_id */) 68 int /* thread_id */,
69 int /* provider_id */)
69 70
70 // Renderer -> Browser message to indicate that the worker has failed to load 71 // Renderer -> Browser message to indicate that the worker has failed to load
71 // the script. 72 // the script.
72 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed, 73 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed,
73 int /* embedded_worker_id */) 74 int /* embedded_worker_id */)
74 75
75 // Renderer -> Browser message to indicate that the worker has evaluated the 76 // Renderer -> Browser message to indicate that the worker has evaluated the
76 // script. 77 // script.
77 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerScriptEvaluated, 78 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerScriptEvaluated,
78 int /* embedded_worker_id */, 79 int /* embedded_worker_id */,
(...skipping 27 matching lines...) Expand all
106 // for this for easier cross-thread message dispatching. 107 // for this for easier cross-thread message dispatching.
107 108
108 #undef IPC_MESSAGE_START 109 #undef IPC_MESSAGE_START
109 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart 110 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart
110 111
111 // Browser -> Renderer message to send message. 112 // Browser -> Renderer message to send message.
112 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, 113 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker,
113 int /* thread_id */, 114 int /* thread_id */,
114 int /* embedded_worker_id */, 115 int /* embedded_worker_id */,
115 IPC::Message /* message */) 116 IPC::Message /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698