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

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

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)
Patch Set: Rebase and address falken, leon and mek's comments Created 3 years, 8 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementRegistrationRefCount, 230 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementRegistrationRefCount,
231 int /* registration_handle_id */) 231 int /* registration_handle_id */)
232 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementRegistrationRefCount, 232 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementRegistrationRefCount,
233 int /* registration_handle_id */) 233 int /* registration_handle_id */)
234 234
235 // Tells the browser to terminate a service worker. Used in layout tests to 235 // Tells the browser to terminate a service worker. Used in layout tests to
236 // verify behavior when a service worker isn't running. 236 // verify behavior when a service worker isn't running.
237 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_TerminateWorker, 237 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_TerminateWorker,
238 int /* handle_id */) 238 int /* handle_id */)
239 239
240 // Informs the browser that event handling has finished.
241 // Routed to the target ServiceWorkerVersion.
242 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished,
243 int /* request_id */,
244 blink::WebServiceWorkerEventResult,
245 bool /* has_fetch_event_handler */,
246 base::Time /* dispatch_event_time */)
247
248 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_FetchEventResponse, 240 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_FetchEventResponse,
249 int /* fetch_event_id */, 241 int /* fetch_event_id */,
250 content::ServiceWorkerFetchEventResult, 242 content::ServiceWorkerFetchEventResult,
251 content::ServiceWorkerResponse, 243 content::ServiceWorkerResponse,
252 base::Time /* dispatch_event_time */) 244 base::Time /* dispatch_event_time */)
253 245
254 // Asks the browser to retrieve client of the sender ServiceWorker. 246 // Asks the browser to retrieve client of the sender ServiceWorker.
255 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, 247 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient,
256 int /* request_id */, 248 int /* request_id */,
257 std::string /* client_uuid */) 249 std::string /* client_uuid */)
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 460
469 // Notifies a client that its controller used a feature, for UseCounter 461 // Notifies a client that its controller used a feature, for UseCounter
470 // purposes (browser->renderer). |feature| must be one of the values from 462 // purposes (browser->renderer). |feature| must be one of the values from
471 // blink::UseCounter::Feature enum. 463 // blink::UseCounter::Feature enum.
472 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_CountFeature, 464 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_CountFeature,
473 int /* thread_id */, 465 int /* thread_id */,
474 int /* provider_id */, 466 int /* provider_id */,
475 uint32_t /* feature */) 467 uint32_t /* feature */)
476 468
477 // Sent via EmbeddedWorker to dispatch events. 469 // Sent via EmbeddedWorker to dispatch events.
478 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent,
479 int /* request_id */)
480 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, 470 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting,
481 int /* request_id */) 471 int /* request_id */)
482 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, 472 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
483 int /* request_id */) 473 int /* request_id */)
484 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, 474 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
485 int /* request_id */, 475 int /* request_id */,
486 blink::WebServiceWorkerError::ErrorType /* code */, 476 blink::WebServiceWorkerError::ErrorType /* code */,
487 base::string16 /* message */) 477 base::string16 /* message */)
488 478
489 // Sent via EmbeddedWorker as a response of GetClient. 479 // Sent via EmbeddedWorker as a response of GetClient.
(...skipping 23 matching lines...) Expand all
513 503
514 // Sent via EmbeddedWorker as a response of NavigateClient. 504 // Sent via EmbeddedWorker as a response of NavigateClient.
515 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 505 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
516 int /* request_id */, 506 int /* request_id */,
517 content::ServiceWorkerClientInfo /* client */) 507 content::ServiceWorkerClientInfo /* client */)
518 508
519 // Sent via EmbeddedWorker as an error response of NavigateClient. 509 // Sent via EmbeddedWorker as an error response of NavigateClient.
520 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 510 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
521 int /* request_id */, 511 int /* request_id */,
522 GURL /* url */) 512 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698