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

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

Issue 1146913004: Service Worker: Add ServiceWorkerContainer.getRegistrations() method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 #include <vector> 8 #include <vector>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 int /* request_id */, 124 int /* request_id */,
125 int /* provider_id */, 125 int /* provider_id */,
126 GURL /* scope (url pattern) */) 126 GURL /* scope (url pattern) */)
127 127
128 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration, 128 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistration,
129 int /* thread_id */, 129 int /* thread_id */,
130 int /* request_id */, 130 int /* request_id */,
131 int /* provider_id */, 131 int /* provider_id */,
132 GURL /* document_url */) 132 GURL /* document_url */)
133 133
134 IPC_MESSAGE_CONTROL4(ServiceWorkerHostMsg_GetRegistrations,
135 int /* thread_id */,
136 int /* request_id */,
137 int /* provider_id */,
138 GURL /* document_url */)
139
134 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady, 140 IPC_MESSAGE_CONTROL3(ServiceWorkerHostMsg_GetRegistrationForReady,
135 int /* thread_id */, 141 int /* thread_id */,
136 int /* request_id */, 142 int /* request_id */,
137 int /* provider_id */) 143 int /* provider_id */)
138 144
139 // Sends a 'message' event to a service worker (renderer->browser). 145 // Sends a 'message' event to a service worker (renderer->browser).
140 IPC_MESSAGE_CONTROL3( 146 IPC_MESSAGE_CONTROL3(
141 ServiceWorkerHostMsg_PostMessageToWorker, 147 ServiceWorkerHostMsg_PostMessageToWorker,
142 int /* handle_id */, 148 int /* handle_id */,
143 base::string16 /* message */, 149 base::string16 /* message */,
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 int /* request_id */, 303 int /* request_id */,
298 bool /* is_success */) 304 bool /* is_success */)
299 305
300 // Response to ServiceWorkerHostMsg_GetRegistration. 306 // Response to ServiceWorkerHostMsg_GetRegistration.
301 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration, 307 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistration,
302 int /* thread_id */, 308 int /* thread_id */,
303 int /* request_id */, 309 int /* request_id */,
304 content::ServiceWorkerRegistrationObjectInfo, 310 content::ServiceWorkerRegistrationObjectInfo,
305 content::ServiceWorkerVersionAttributes) 311 content::ServiceWorkerVersionAttributes)
306 312
313 // Response to ServiceWorkerHostMsg_GetRegistrations.
314 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrations,
315 int /* thread_id */,
316 int /* request_id */,
317 std::vector<content::ServiceWorkerRegistrationObjectInfo>,
318 std::vector<content::ServiceWorkerVersionAttributes>)
319
307 // Response to ServiceWorkerHostMsg_GetRegistrationForReady. 320 // Response to ServiceWorkerHostMsg_GetRegistrationForReady.
308 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady, 321 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_DidGetRegistrationForReady,
309 int /* thread_id */, 322 int /* thread_id */,
310 int /* request_id */, 323 int /* request_id */,
311 content::ServiceWorkerRegistrationObjectInfo, 324 content::ServiceWorkerRegistrationObjectInfo,
312 content::ServiceWorkerVersionAttributes) 325 content::ServiceWorkerVersionAttributes)
313 326
314 // Sent when any kind of registration error occurs during a 327 // Sent when any kind of registration error occurs during a
315 // RegisterServiceWorker handler above. 328 // RegisterServiceWorker handler above.
316 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError, 329 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerRegistrationError,
(...skipping 11 matching lines...) Expand all
328 base::string16 /* message */) 341 base::string16 /* message */)
329 342
330 // Sent when any kind of registration error occurs during a 343 // Sent when any kind of registration error occurs during a
331 // GetRegistration handler above. 344 // GetRegistration handler above.
332 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError, 345 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationError,
333 int /* thread_id */, 346 int /* thread_id */,
334 int /* request_id */, 347 int /* request_id */,
335 blink::WebServiceWorkerError::ErrorType /* code */, 348 blink::WebServiceWorkerError::ErrorType /* code */,
336 base::string16 /* message */) 349 base::string16 /* message */)
337 350
351 // Sent when any kind of registration error occurs during a
352 // GetRegistrations handler above.
353 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_ServiceWorkerGetRegistrationsError,
354 int /* thread_id */,
355 int /* request_id */,
356 blink::WebServiceWorkerError::ErrorType /* code */,
357 base::string16 /* message */)
358
338 // Informs the child process that the ServiceWorker's state has changed. 359 // Informs the child process that the ServiceWorker's state has changed.
339 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged, 360 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ServiceWorkerStateChanged,
340 int /* thread_id */, 361 int /* thread_id */,
341 int /* handle_id */, 362 int /* handle_id */,
342 blink::WebServiceWorkerState) 363 blink::WebServiceWorkerState)
343 364
344 // Tells the child process to set service workers for the given provider. 365 // Tells the child process to set service workers for the given provider.
345 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes, 366 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetVersionAttributes,
346 int /* thread_id */, 367 int /* thread_id */,
347 int /* provider_id */, 368 int /* provider_id */,
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 453
433 // Sent via EmbeddedWorker as an error response of OpenWindow. 454 // Sent via EmbeddedWorker as an error response of OpenWindow.
434 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError, 455 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_OpenWindowError,
435 int /* request_id */, 456 int /* request_id */,
436 std::string /* message */ ) 457 std::string /* message */ )
437 458
438 // Sent via EmbeddedWorker as a response of FocusClient. 459 // Sent via EmbeddedWorker as a response of FocusClient.
439 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse, 460 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_FocusClientResponse,
440 int /* request_id */, 461 int /* request_id */,
441 content::ServiceWorkerClientInfo /* client */) 462 content::ServiceWorkerClientInfo /* client */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698