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

Unified Diff: content/common/service_worker/service_worker_messages.h

Issue 2658603003: ServiceWorker: Enable UseCounter for ServiceWorkerGlobalScope (Closed)
Patch Set: ready to review 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..16440845c989f5cc4b0805cbde3aff9ca6a2c5ab 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,13 @@ IPC_MESSAGE_CONTROL4(ServiceWorkerMsg_SetNavigationPreloadHeaderError,
IPC_MESSAGE_CONTROL1(ServiceWorkerMsg_MessageToDocument,
ServiceWorkerMsg_MessageToDocument_Params)
+// Notifies an API use to a client document (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