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

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

Issue 2746783002: [ServiceWorker] Mojofy InstallEvent of Service Worker (Closed)
Patch Set: Created 3 years, 9 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 // Responds to a Ping from the browser. 246 // Responds to a Ping from the browser.
255 // Routed to the target ServiceWorkerVersion. 247 // Routed to the target ServiceWorkerVersion.
256 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong) 248 IPC_MESSAGE_ROUTED0(ServiceWorkerHostMsg_Pong)
257 249
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 464
473 // Notifies a client that its controller used a feature, for UseCounter 465 // Notifies a client that its controller used a feature, for UseCounter
474 // purposes (browser->renderer). |feature| must be one of the values from 466 // purposes (browser->renderer). |feature| must be one of the values from
475 // blink::UseCounter::Feature enum. 467 // blink::UseCounter::Feature enum.
476 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_CountFeature, 468 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_CountFeature,
477 int /* thread_id */, 469 int /* thread_id */,
478 int /* provider_id */, 470 int /* provider_id */,
479 uint32_t /* feature */) 471 uint32_t /* feature */)
480 472
481 // Sent via EmbeddedWorker to dispatch events. 473 // Sent via EmbeddedWorker to dispatch events.
482 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent,
483 int /* request_id */)
484 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, 474 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting,
485 int /* request_id */) 475 int /* request_id */)
486 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, 476 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients,
487 int /* request_id */) 477 int /* request_id */)
488 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, 478 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError,
489 int /* request_id */, 479 int /* request_id */,
490 blink::WebServiceWorkerError::ErrorType /* code */, 480 blink::WebServiceWorkerError::ErrorType /* code */,
491 base::string16 /* message */) 481 base::string16 /* message */)
492 482
493 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response. 483 // Sent via EmbeddedWorker to Ping the worker, expecting a Pong in response.
(...skipping 26 matching lines...) Expand all
520 510
521 // Sent via EmbeddedWorker as a response of NavigateClient. 511 // Sent via EmbeddedWorker as a response of NavigateClient.
522 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 512 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
523 int /* request_id */, 513 int /* request_id */,
524 content::ServiceWorkerClientInfo /* client */) 514 content::ServiceWorkerClientInfo /* client */)
525 515
526 // Sent via EmbeddedWorker as an error response of NavigateClient. 516 // Sent via EmbeddedWorker as an error response of NavigateClient.
527 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 517 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
528 int /* request_id */, 518 int /* request_id */,
529 GURL /* url */) 519 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698