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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h

Issue 2355723005: Worker: Introduce WorkerReportingProxy::willEvaluateWorkerScript() (Closed)
Patch Set: fix comment Created 4 years, 3 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/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
index bda5974cea3445f459ca2cbfdd9959500a72d889..9a924b42d69073e40bc81524116215fff01a3bb3 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerGlobalScope.h
@@ -61,7 +61,11 @@ public:
~ServiceWorkerGlobalScope() override;
bool isServiceWorkerGlobalScope() const override { return true; }
- void didLoadWorkerScript(size_t scriptSize, size_t cachedMetadataSize);
+ // Counts an evaluated script and its size. Called for each of the main
+ // worker script and imported scripts.
+ void countScript(size_t scriptSize, size_t cachedMetadataSize);
+
+ // Called when the main worker script is evaluated.
void didEvaluateWorkerScript();
// ServiceWorkerGlobalScope.idl

Powered by Google App Engine
This is Rietveld 408576698