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

Unified Diff: third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp

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
« no previous file with comments | « third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.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/Source/web/ServiceWorkerGlobalScopeProxy.cpp
diff --git a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
index e96e316facf5364f0c8e60a727b7fdbcafc2ad66..156c1fc7caf5a4ab64e3f3faa68c6aed5d5b1c80 100644
--- a/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
+++ b/third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.cpp
@@ -254,12 +254,6 @@ void ServiceWorkerGlobalScopeProxy::postMessageToPageInspector(const String& mes
document().postInspectorTask(BLINK_FROM_HERE, createCrossThreadTask(&WebEmbeddedWorkerImpl::postMessageToPageInspector, crossThreadUnretained(m_embeddedWorker), message));
}
-void ServiceWorkerGlobalScopeProxy::didLoadWorkerScript(size_t scriptSize, size_t cachedMetadataSize)
-{
- DCHECK(m_workerGlobalScope);
- m_workerGlobalScope->didLoadWorkerScript(scriptSize, cachedMetadataSize);
-}
-
void ServiceWorkerGlobalScopeProxy::didCreateWorkerGlobalScope(WorkerOrWorkletGlobalScope* workerGlobalScope)
{
DCHECK(!m_workerGlobalScope);
@@ -273,6 +267,18 @@ void ServiceWorkerGlobalScopeProxy::didInitializeWorkerContext()
client().didInitializeWorkerContext(workerGlobalScope()->scriptController()->context());
}
+void ServiceWorkerGlobalScopeProxy::willEvaluateWorkerScript(size_t scriptSize, size_t cachedMetadataSize)
+{
+ DCHECK(m_workerGlobalScope);
+ m_workerGlobalScope->countScript(scriptSize, cachedMetadataSize);
+}
+
+void ServiceWorkerGlobalScopeProxy::willEvaluateImportedScript(size_t scriptSize, size_t cachedMetadataSize)
+{
+ DCHECK(m_workerGlobalScope);
+ m_workerGlobalScope->countScript(scriptSize, cachedMetadataSize);
+}
+
void ServiceWorkerGlobalScopeProxy::didEvaluateWorkerScript(bool success)
{
DCHECK(m_workerGlobalScope);
« no previous file with comments | « third_party/WebKit/Source/web/ServiceWorkerGlobalScopeProxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698