Index: content/common/view_messages.h |
diff --git a/content/common/view_messages.h b/content/common/view_messages.h |
index f12fa45f7f47a36856b2a9236ac9c1553800e0ab..8d6953a07500331ff51e6674da51c1197b242ba6 100644 |
--- a/content/common/view_messages.h |
+++ b/content/common/view_messages.h |
@@ -538,7 +538,19 @@ IPC_MESSAGE_ROUTED0(ViewMsg_WorkerScriptLoadFailed) |
// Sent when the worker has connected. |
// This message is sent only if the worker successfully loaded the script. |
-IPC_MESSAGE_ROUTED0(ViewMsg_WorkerConnected) |
+// |use_counter| contains the values from the blink::UseCounter::Feature enum |
+// that are counted on the worker global scope so far. |
+IPC_MESSAGE_ROUTED1(ViewMsg_WorkerConnected, |
+ std::set<uint32_t> /* use_counter */) |
+ |
+// Sent when the worker is destroyed. |
+IPC_MESSAGE_ROUTED0(ViewMsg_WorkerDestroyed) |
+ |
+// Sent when the worker calls API that should be recored in UseCounter. |
+// |use_counter_id| must be one of the values from blink::UseCounter::Feature |
+// enum. |
+IPC_MESSAGE_ROUTED1(ViewMsg_CountFeatureOnSharedWorker, |
+ uint32_t /* use_counter_id */) |
// Sent by the browser to synchronize with the next compositor frame. Used only |
// for tests. |