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

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

Issue 2658603003: ServiceWorker: Enable UseCounter for ServiceWorkerGlobalScope (Closed)
Patch Set: int32_t -> uint32_t Created 3 years, 10 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 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 a client that its controller used a feature, for UseCounter
523 // purposes (browser->renderer). |feature| must be one of the values from
524 // blink::UseCounter::Feature enum.
525 IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_CountFeature,
526 int /* thread_id */,
527 int /* provider_id */,
528 uint32_t /* feature */)
529
520 // Sent via EmbeddedWorker to dispatch events. 530 // Sent via EmbeddedWorker to dispatch events.
521 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent, 531 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent,
522 int /* request_id */) 532 int /* request_id */)
523 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent, 533 IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_ActivateEvent,
524 int /* request_id */) 534 int /* request_id */)
525 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_NotificationClickEvent, 535 IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_NotificationClickEvent,
526 int /* request_id */, 536 int /* request_id */,
527 std::string /* notification_id */, 537 std::string /* notification_id */,
528 content::PlatformNotificationData /* notification_data */, 538 content::PlatformNotificationData /* notification_data */,
529 int /* action_index */, 539 int /* action_index */,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
572 582
573 // Sent via EmbeddedWorker as a response of NavigateClient. 583 // Sent via EmbeddedWorker as a response of NavigateClient.
574 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse, 584 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientResponse,
575 int /* request_id */, 585 int /* request_id */,
576 content::ServiceWorkerClientInfo /* client */) 586 content::ServiceWorkerClientInfo /* client */)
577 587
578 // Sent via EmbeddedWorker as an error response of NavigateClient. 588 // Sent via EmbeddedWorker as an error response of NavigateClient.
579 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError, 589 IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_NavigateClientError,
580 int /* request_id */, 590 int /* request_id */,
581 GURL /* url */) 591 GURL /* url */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698