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

Unified Diff: content/common/worker_messages.h

Issue 2586863002: Worker: Enable UseCounter for SharedWorkerGlobalScope (Closed)
Patch Set: simplify 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
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/shared_worker/embedded_shared_worker_stub.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/worker_messages.h
diff --git a/content/common/worker_messages.h b/content/common/worker_messages.h
index e49ce80e525f1fe5fedcadb7d1d58df943155094..e040508735f360db9cb9de59c8d280bf46258e7e 100644
--- a/content/common/worker_messages.h
+++ b/content/common/worker_messages.h
@@ -89,6 +89,14 @@ IPC_MESSAGE_ROUTED0(WorkerMsg_WorkerObjectDestroyed)
// WorkerHost messages
// These are messages sent from the worker (renderer process) to the worker
// host (browser process).
+
+// Sent when the worker calls API that should be recored in UseCounter.
+// |feature| must be one of the values from blink::UseCounter::Feature
+// enum.
+IPC_MESSAGE_CONTROL2(WorkerHostMsg_CountFeature,
+ int /* worker_route_id */,
+ uint32_t /* feature */)
+
IPC_MESSAGE_CONTROL1(WorkerHostMsg_WorkerContextClosed,
int /* worker_route_id */)
« no previous file with comments | « content/common/view_messages.h ('k') | content/renderer/shared_worker/embedded_shared_worker_stub.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698