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

Unified Diff: third_party/WebKit/public/web/modules/serviceworker/WebServiceWorkerContextClient.h

Issue 2658603003: ServiceWorker: Enable UseCounter for ServiceWorkerGlobalScope (Closed)
Patch Set: int32_t -> uint32_t 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 | « third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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,
« no previous file with comments | « third_party/WebKit/public/platform/modules/serviceworker/WebServiceWorkerProviderClient.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698