| OLD | NEW |
| 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementRegistrationRefCount, | 229 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_IncrementRegistrationRefCount, |
| 230 int /* registration_handle_id */) | 230 int /* registration_handle_id */) |
| 231 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementRegistrationRefCount, | 231 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_DecrementRegistrationRefCount, |
| 232 int /* registration_handle_id */) | 232 int /* registration_handle_id */) |
| 233 | 233 |
| 234 // Tells the browser to terminate a service worker. Used in layout tests to | 234 // Tells the browser to terminate a service worker. Used in layout tests to |
| 235 // verify behavior when a service worker isn't running. | 235 // verify behavior when a service worker isn't running. |
| 236 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_TerminateWorker, | 236 IPC_MESSAGE_CONTROL1(ServiceWorkerHostMsg_TerminateWorker, |
| 237 int /* handle_id */) | 237 int /* handle_id */) |
| 238 | 238 |
| 239 // Informs the browser that event handling has finished. | |
| 240 // Routed to the target ServiceWorkerVersion. | |
| 241 IPC_MESSAGE_ROUTED4(ServiceWorkerHostMsg_InstallEventFinished, | |
| 242 int /* request_id */, | |
| 243 blink::WebServiceWorkerEventResult, | |
| 244 bool /* has_fetch_event_handler */, | |
| 245 base::Time /* dispatch_event_time */) | |
| 246 | |
| 247 // Returns the response as the result of fetch event. This is used only for blob | 239 // Returns the response as the result of fetch event. This is used only for blob |
| 248 // to keep the IPC ordering. Mojo IPC is used when the response body is a stream | 240 // to keep the IPC ordering. Mojo IPC is used when the response body is a stream |
| 249 // or is empty, and for the fallback-to-network response. | 241 // or is empty, and for the fallback-to-network response. |
| 250 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventResponse, | 242 IPC_MESSAGE_ROUTED3(ServiceWorkerHostMsg_FetchEventResponse, |
| 251 int /* fetch_event_id */, | 243 int /* fetch_event_id */, |
| 252 content::ServiceWorkerResponse, | 244 content::ServiceWorkerResponse, |
| 253 base::Time /* dispatch_event_time */) | 245 base::Time /* dispatch_event_time */) |
| 254 | 246 |
| 255 // Asks the browser to retrieve client of the sender ServiceWorker. | 247 // Asks the browser to retrieve client of the sender ServiceWorker. |
| 256 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, | 248 IPC_MESSAGE_ROUTED2(ServiceWorkerHostMsg_GetClient, |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 469 | 461 |
| 470 // Notifies a client that its controller used a feature, for UseCounter | 462 // Notifies a client that its controller used a feature, for UseCounter |
| 471 // purposes (browser->renderer). |feature| must be one of the values from | 463 // purposes (browser->renderer). |feature| must be one of the values from |
| 472 // blink::UseCounter::Feature enum. | 464 // blink::UseCounter::Feature enum. |
| 473 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_CountFeature, | 465 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_CountFeature, |
| 474 int /* thread_id */, | 466 int /* thread_id */, |
| 475 int /* provider_id */, | 467 int /* provider_id */, |
| 476 uint32_t /* feature */) | 468 uint32_t /* feature */) |
| 477 | 469 |
| 478 // Sent via EmbeddedWorker to dispatch events. | 470 // Sent via EmbeddedWorker to dispatch events. |
| 479 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | |
| 480 int /* request_id */) | |
| 481 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, | 471 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidSkipWaiting, |
| 482 int /* request_id */) | 472 int /* request_id */) |
| 483 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, | 473 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_DidClaimClients, |
| 484 int /* request_id */) | 474 int /* request_id */) |
| 485 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, | 475 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_ClaimClientsError, |
| 486 int /* request_id */, | 476 int /* request_id */, |
| 487 blink::WebServiceWorkerError::ErrorType /* code */, | 477 blink::WebServiceWorkerError::ErrorType /* code */, |
| 488 base::string16 /* message */) | 478 base::string16 /* message */) |
| 489 | 479 |
| 490 // Sent via EmbeddedWorker as a response of GetClient. | 480 // Sent via EmbeddedWorker as a response of GetClient. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 514 | 504 |
| 515 // Sent via EmbeddedWorker as a response of NavigateClient. | 505 // Sent via EmbeddedWorker as a response of NavigateClient. |
| 516 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 506 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
| 517 int /* request_id */, | 507 int /* request_id */, |
| 518 content::ServiceWorkerClientInfo /* client */) | 508 content::ServiceWorkerClientInfo /* client */) |
| 519 | 509 |
| 520 // Sent via EmbeddedWorker as an error response of NavigateClient. | 510 // Sent via EmbeddedWorker as an error response of NavigateClient. |
| 521 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 511 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
| 522 int /* request_id */, | 512 int /* request_id */, |
| 523 GURL /* url */) | 513 GURL /* url */) |
| OLD | NEW |