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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: content/common/service_worker/service_worker_messages.h
diff --git a/content/common/service_worker/service_worker_messages.h b/content/common/service_worker/service_worker_messages.h
index 603bc027636f75432c72faf4ce727e1a37558f54..a1460165967c6c4eb11db3abca3c7988ba12a67c 100644
--- a/content/common/service_worker/service_worker_messages.h
+++ b/content/common/service_worker/service_worker_messages.h
@@ -480,12 +480,14 @@ IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_UpdateFound,
int /* registration_handle_id */)
// Tells the child process to set the controller ServiceWorker for the given
-// provider.
-IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetControllerServiceWorker,
+// provider. |used_features| is the set of features that the worker has used.
+// The values must be from blink::UseCounter::Feature enum.
+IPC_MESSAGE_CONTROL5(ServiceWorkerMsg_SetControllerServiceWorker,
int /* thread_id */,
int /* provider_id */,
content::ServiceWorkerObjectInfo,
- bool /* should_notify_controllerchange */)
+ bool /* should_notify_controllerchange */,
+ std::set<uint32_t> /* used_features */)
IPC_MESSAGE_CONTROL2(ServiceWorkerMsg_DidEnableNavigationPreload,
int /* thread_id */,
@@ -517,6 +519,14 @@ IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetNavigationPreloadHeaderError,
IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument,
ServiceWorkerMsg_MessageToDocument_Params)
+// Notifies a client that its controller used a feature, for UseCounter
+// purposes (browser->renderer). |feature| must be one of the values from
+// blink::UseCounter::Feature enum.
+IPC_MESSAGE_CONTROL3(ServiceWorkerMsg_CountFeature,
+ int /* thread_id */,
+ int /* provider_id */,
+ uint32_t /* feature */)
+
// Sent via EmbeddedWorker to dispatch events.
IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_InstallEvent,
int /* request_id */)

Powered by Google App Engine
This is Rietveld 408576698