Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/testing/WorkerInternals.idl

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.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/testing/WorkerInternals.idl
diff --git a/third_party/WebKit/Source/core/testing/WorkerInternals.idl b/third_party/WebKit/Source/core/testing/WorkerInternals.idl
index 02866e69f6ecdbe1c169aa95c977b8a846dd18c2..7db9eff46eda5451d922d38666d740c1859e8cf4 100644
--- a/third_party/WebKit/Source/core/testing/WorkerInternals.idl
+++ b/third_party/WebKit/Source/core/testing/WorkerInternals.idl
@@ -4,4 +4,9 @@
interface WorkerInternals {
OriginTrialsTest originTrialsTest();
+
+ // Records |feature| in worker's use counter. |feature| must be one of the
+ // values from the UseCounter::Feature enum.
+ [CallWith=ScriptState] void countFeature(unsigned long feature);
+ [CallWith=ScriptState] void countDeprecation(unsigned long feature);
};

Powered by Google App Engine