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

Unified Diff: third_party/WebKit/Source/modules/worklet/Worklet.cpp

Issue 2017703002: Notify InspectorInstrumentation on successfully imported Worklet's script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/modules/worklet/Worklet.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/modules/worklet/Worklet.cpp
diff --git a/third_party/WebKit/Source/modules/worklet/Worklet.cpp b/third_party/WebKit/Source/modules/worklet/Worklet.cpp
index 0c753df28fa2475070378fe46e9b5df1b903517a..c7d910ac73277c1ce308e285cf9e03dcc2721388 100644
--- a/third_party/WebKit/Source/modules/worklet/Worklet.cpp
+++ b/third_party/WebKit/Source/modules/worklet/Worklet.cpp
@@ -43,16 +43,15 @@ ScriptPromise Worklet::import(ScriptState* scriptState, const String& url)
m_scriptLoaders.append(WorkerScriptLoader::create());
m_scriptLoaders.last()->loadAsynchronously(*getExecutionContext(), scriptURL, DenyCrossOriginRequests,
getExecutionContext()->securityContext().addressSpace(),
- bind(&Worklet::onResponse, this),
+ bind(&Worklet::onResponse, this, m_scriptLoaders.last().get()),
bind(&Worklet::onFinished, this, m_scriptLoaders.last().get(), resolver));
return promise;
}
-void Worklet::onResponse()
+void Worklet::onResponse(WorkerScriptLoader* scriptLoader)
{
- // TODO(ikilpatrick): Add devtools instrumentation on worklet script
- // resource loading.
+ InspectorInstrumentation::didReceiveScriptResponse(getExecutionContext(), scriptLoader->identifier());
}
void Worklet::onFinished(WorkerScriptLoader* scriptLoader, ScriptPromiseResolver* resolver)
« no previous file with comments | « third_party/WebKit/Source/modules/worklet/Worklet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698