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

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

Issue 697593002: ServiceWorker: Registering a malformed script should fail [2/3] (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comment Created 6 years, 1 month 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // script. 65 // script.
66 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerScriptLoaded, 66 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerScriptLoaded,
67 int /* embedded_worker_id */, 67 int /* embedded_worker_id */,
68 int /* thread_id */) 68 int /* thread_id */)
69 69
70 // Renderer -> Browser message to indicate that the worker has failed to load 70 // Renderer -> Browser message to indicate that the worker has failed to load
71 // the script. 71 // the script.
72 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed, 72 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerScriptLoadFailed,
73 int /* embedded_worker_id */) 73 int /* embedded_worker_id */)
74 74
75 // Renderer -> Browser message to indicate that the worker has evaluated the
76 // script.
77 IPC_MESSAGE_CONTROL2(EmbeddedWorkerHostMsg_WorkerScriptEvaluated,
78 int /* embedded_worker_id */,
79 bool /* success */)
80
75 // Renderer -> Browser message to indicate that the worker is started. 81 // Renderer -> Browser message to indicate that the worker is started.
76 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStarted, 82 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStarted,
77 int /* embedded_worker_id */) 83 int /* embedded_worker_id */)
78 84
79 // Renderer -> Browser message to indicate that the worker is stopped. 85 // Renderer -> Browser message to indicate that the worker is stopped.
80 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped, 86 IPC_MESSAGE_CONTROL1(EmbeddedWorkerHostMsg_WorkerStopped,
81 int /* embedded_worker_id */) 87 int /* embedded_worker_id */)
82 88
83 // Renderer -> Browser message to report an exception. 89 // Renderer -> Browser message to report an exception.
84 IPC_MESSAGE_CONTROL5(EmbeddedWorkerHostMsg_ReportException, 90 IPC_MESSAGE_CONTROL5(EmbeddedWorkerHostMsg_ReportException,
(...skipping 15 matching lines...) Expand all
100 // for this for easier cross-thread message dispatching. 106 // for this for easier cross-thread message dispatching.
101 107
102 #undef IPC_MESSAGE_START 108 #undef IPC_MESSAGE_START
103 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart 109 #define IPC_MESSAGE_START EmbeddedWorkerContextMsgStart
104 110
105 // Browser -> Renderer message to send message. 111 // Browser -> Renderer message to send message.
106 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker, 112 IPC_MESSAGE_CONTROL3(EmbeddedWorkerContextMsg_MessageToWorker,
107 int /* thread_id */, 113 int /* thread_id */,
108 int /* embedded_worker_id */, 114 int /* embedded_worker_id */,
109 IPC::Message /* message */) 115 IPC::Message /* message */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698