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

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

Issue 517493002: ServiceWorker: Update the install sequence as per the latest spec (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment fix (+rebase) Created 6 years, 3 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
« no previous file with comments | « content/child/service_worker/web_service_worker_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 178
179 //--------------------------------------------------------------------------- 179 //---------------------------------------------------------------------------
180 // Messages sent from the browser to the child process. 180 // Messages sent from the browser to the child process.
181 // 181 //
182 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have 182 // NOTE: All ServiceWorkerMsg messages not sent via EmbeddedWorker must have
183 // a thread_id as their first field so that ServiceWorkerMessageFilter can 183 // a thread_id as their first field so that ServiceWorkerMessageFilter can
184 // extract it and dispatch the message to the correct ServiceWorkerDispatcher 184 // extract it and dispatch the message to the correct ServiceWorkerDispatcher
185 // on the correct thread. 185 // on the correct thread.
186 186
187 // Response to ServiceWorkerMsg_RegisterServiceWorker. 187 // Response to ServiceWorkerMsg_RegisterServiceWorker.
188 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerRegistered, 188 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistered,
189 int /* thread_id */, 189 int /* thread_id */,
190 int /* request_id */, 190 int /* request_id */,
191 content::ServiceWorkerRegistrationObjectInfo) 191 content::ServiceWorkerRegistrationObjectInfo,
192 content::ServiceWorkerVersionAttributes)
192 193
193 // Response to ServiceWorkerMsg_UnregisterServiceWorker. 194 // Response to ServiceWorkerMsg_UnregisterServiceWorker.
194 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered, 195 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_ServiceWorkerUnregistered,
195 int /* thread_id */, 196 int /* thread_id */,
196 int /* request_id */) 197 int /* request_id */)
197 198
198 // Sent when any kind of registration error occurs during a 199 // Sent when any kind of registration error occurs during a
199 // RegisterServiceWorker / UnregisterServiceWorker handler above. 200 // RegisterServiceWorker / UnregisterServiceWorker handler above.
200 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, 201 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
201 int /* thread_id */, 202 int /* thread_id */,
202 int /* request_id */, 203 int /* request_id */,
203 blink::WebServiceWorkerError::ErrorType /* code */, 204 blink::WebServiceWorkerError::ErrorType /* code */,
204 base::string16 /* message */) 205 base::string16 /* message */)
205 206
206 // Informs the child process that the ServiceWorker's state has changed. 207 // Informs the child process that the ServiceWorker's state has changed.
207 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, 208 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged,
208 int /* thread_id */, 209 int /* thread_id */,
209 int /* handle_id */, 210 int /* handle_id */,
210 blink::WebServiceWorkerState) 211 blink::WebServiceWorkerState)
211 212
212 // Tells the child process to set service workers for the given provider. 213 // Tells the child process to set service workers for the given provider.
213 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, 214 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes,
214 int /* thread_id */, 215 int /* thread_id */,
215 int /* provider_id */, 216 int /* provider_id */,
216 int /* registration_handle_id */, 217 int /* registration_handle_id */,
217 int /* changed_mask */, 218 int /* changed_mask */,
218 content::ServiceWorkerVersionAttributes) 219 content::ServiceWorkerVersionAttributes)
219 220
221 // Informs the child process that new ServiceWorker enters the installation
222 // phase.
223 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UpdateFound,
224 int /* thread_id */,
225 content::ServiceWorkerRegistrationObjectInfo)
226
220 // Tells the child process to set the controller ServiceWorker for the given 227 // Tells the child process to set the controller ServiceWorker for the given
221 // provider. 228 // provider.
222 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetControllerServiceWorker, 229 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_SetControllerServiceWorker,
223 int /* thread_id */, 230 int /* thread_id */,
224 int /* provider_id */, 231 int /* provider_id */,
225 content::ServiceWorkerObjectInfo) 232 content::ServiceWorkerObjectInfo)
226 233
227 // Sends a 'message' event to a client document (browser->renderer). 234 // Sends a 'message' event to a client document (browser->renderer).
228 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument, 235 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_MessageToDocument,
229 int /* thread_id */, 236 int /* thread_id */,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 blink::WebServiceWorkerCacheError /* reason */) 287 blink::WebServiceWorkerCacheError /* reason */)
281 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError, 288 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageCreateError,
282 int /* request_id */, 289 int /* request_id */,
283 blink::WebServiceWorkerCacheError /* reason */) 290 blink::WebServiceWorkerCacheError /* reason */)
284 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError, 291 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageDeleteError,
285 int /* request_id */, 292 int /* request_id */,
286 blink::WebServiceWorkerCacheError /* reason */) 293 blink::WebServiceWorkerCacheError /* reason */)
287 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError, 294 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_CacheStorageKeysError,
288 int /* request_id */, 295 int /* request_id */,
289 blink::WebServiceWorkerCacheError /* reason */) 296 blink::WebServiceWorkerCacheError /* reason */)
OLDNEW
« no previous file with comments | « content/child/service_worker/web_service_worker_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698