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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.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: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
diff --git a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
index 99ba37f85c0409f7035b58d4c7dd2bf66da3aa05..e06bd92e04e3881741618a188d8e91d9a705c073 100644
--- a/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
+++ b/third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h
@@ -100,6 +100,10 @@ class WebServiceWorkerContextClient {
// Called when the worker context is initialized.
virtual void didInitializeWorkerContext(v8::Local<v8::Context> context) {}
+ // Called when some API to be recorded in UseCounter is called on the worker
+ // global scope.
+ virtual void countFeature(uint32_t feature) {}
+
// Called when the WorkerGlobalScope had an error or an exception.
virtual void reportException(const WebString& errorMessage,
int lineNumber,

Powered by Google App Engine
This is Rietveld 408576698