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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 int /* changed_mask */, | 473 int /* changed_mask */, |
474 content::ServiceWorkerVersionAttributes) | 474 content::ServiceWorkerVersionAttributes) |
475 | 475 |
476 // Informs the child process that new ServiceWorker enters the installation | 476 // Informs the child process that new ServiceWorker enters the installation |
477 // phase. | 477 // phase. |
478 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UpdateFound, | 478 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UpdateFound, |
479 int /* thread_id */, | 479 int /* thread_id */, |
480 int /* registration_handle_id */) | 480 int /* registration_handle_id */) |
481 | 481 |
482 // Tells the child process to set the controller ServiceWorker for the given | 482 // Tells the child process to set the controller ServiceWorker for the given |
483 // provider. | 483 // provider. |used_features| is the set of features that the worker has used. |
484 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker, | 484 // The values must be from blink::UseCounter::Feature enum. |
| 485 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetControllerServiceWorker, |
485 int /* thread_id */, | 486 int /* thread_id */, |
486 int /* provider_id */, | 487 int /* provider_id */, |
487 content::ServiceWorkerObjectInfo, | 488 content::ServiceWorkerObjectInfo, |
488 bool /* should_notify_controllerchange */) | 489 bool /* should_notify_controllerchange */, |
| 490 std::set<uint32_t> /* used_features */) |
489 | 491 |
490 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidEnableNavigationPreload, | 492 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidEnableNavigationPreload, |
491 int /* thread_id */, | 493 int /* thread_id */, |
492 int /* request_id */) | 494 int /* request_id */) |
493 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_EnableNavigationPreloadError, | 495 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_EnableNavigationPreloadError, |
494 int /* thread_id */, | 496 int /* thread_id */, |
495 int /* request_id */, | 497 int /* request_id */, |
496 blink::WebServiceWorkerError::ErrorType /* code */, | 498 blink::WebServiceWorkerError::ErrorType /* code */, |
497 std::string /* message */) | 499 std::string /* message */) |
498 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_DidGetNavigationPreloadState, | 500 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_DidGetNavigationPreloadState, |
(...skipping 11 matching lines...) Expand all Loading... |
510 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetNavigationPreloadHeaderError, | 512 IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetNavigationPreloadHeaderError, |
511 int /* thread_id */, | 513 int /* thread_id */, |
512 int /* request_id */, | 514 int /* request_id */, |
513 blink::WebServiceWorkerError::ErrorType /* code */, | 515 blink::WebServiceWorkerError::ErrorType /* code */, |
514 std::string /* message */) | 516 std::string /* message */) |
515 | 517 |
516 // Sends MessageEvent to a client document (browser->renderer). | 518 // Sends MessageEvent to a client document (browser->renderer). |
517 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, | 519 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument, |
518 ServiceWorkerMsg_MessageToDocument_Params) | 520 ServiceWorkerMsg_MessageToDocument_Params) |
519 | 521 |
| 522 // Notifies an API use to a client document (browser->renderer). |feature| must |
| 523 // be one of the values from blink::UseCounter::Feature enum. |
| 524 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_CountFeature, |
| 525 int /* thread_id */, |
| 526 int /* provider_id */, |
| 527 uint32_t /* feature */) |
| 528 |
520 // Sent via EmbeddedWorker to dispatch events. | 529 // Sent via EmbeddedWorker to dispatch events. |
521 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, | 530 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, |
522 int /* request_id */) | 531 int /* request_id */) |
523 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, | 532 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, |
524 int /* request_id */) | 533 int /* request_id */) |
525 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_NotificationClickEvent, | 534 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_NotificationClickEvent, |
526 int /* request_id */, | 535 int /* request_id */, |
527 std::string /* notification_id */, | 536 std::string /* notification_id */, |
528 content::PlatformNotificationData /* notification_data */, | 537 content::PlatformNotificationData /* notification_data */, |
529 int /* action_index */, | 538 int /* action_index */, |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 | 581 |
573 // Sent via EmbeddedWorker as a response of NavigateClient. | 582 // Sent via EmbeddedWorker as a response of NavigateClient. |
574 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, | 583 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, |
575 int /* request_id */, | 584 int /* request_id */, |
576 content::ServiceWorkerClientInfo /* client */) | 585 content::ServiceWorkerClientInfo /* client */) |
577 | 586 |
578 // Sent via EmbeddedWorker as an error response of NavigateClient. | 587 // Sent via EmbeddedWorker as an error response of NavigateClient. |
579 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, | 588 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, |
580 int /* request_id */, | 589 int /* request_id */, |
581 GURL /* url */) | 590 GURL /* url */) |
OLD | NEW |