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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js

Issue 2501883002: DevTools: kill Bindings.NetworkMapping (Closed)
Patch Set: rebaseline Created 4 years, 1 month 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/devtools/front_end/bindings/CompilerScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
index 7247db97aab3b73d2df5a2a9f150b946f44c62cd..46387b302ac181ac67e1b60beabaf3882308c136 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/CompilerScriptMapping.js
@@ -35,14 +35,13 @@ Bindings.CompilerScriptMapping = class {
/**
* @param {!SDK.DebuggerModel} debuggerModel
* @param {!Workspace.Workspace} workspace
- * @param {!Bindings.NetworkMapping} networkMapping
* @param {!Bindings.NetworkProject} networkProject
* @param {!Bindings.DebuggerWorkspaceBinding} debuggerWorkspaceBinding
*/
- constructor(debuggerModel, workspace, networkMapping, networkProject, debuggerWorkspaceBinding) {
+ constructor(debuggerModel, workspace, networkProject, debuggerWorkspaceBinding) {
this._target = debuggerModel.target();
this._debuggerModel = debuggerModel;
- this._networkMapping = networkMapping;
+ this._workspace = workspace;
this._networkProject = networkProject;
this._debuggerWorkspaceBinding = debuggerWorkspaceBinding;
@@ -118,7 +117,7 @@ Bindings.CompilerScriptMapping = class {
var script = rawLocation.script();
if (!script)
return null;
- var uiSourceCode = this._networkMapping.uiSourceCodeForScriptURL(/** @type {string} */ (entry.sourceURL), script);
+ var uiSourceCode = Bindings.NetworkProject.uiSourceCodeForScriptURL(this._workspace, /** @type {string} */ (entry.sourceURL), script);
if (!uiSourceCode)
return null;
return uiSourceCode.uiLocation(
@@ -238,7 +237,7 @@ Bindings.CompilerScriptMapping = class {
if (this._sourceMapForURL.get(sourceURL))
continue;
this._sourceMapForURL.set(sourceURL, sourceMap);
- var uiSourceCode = this._networkMapping.uiSourceCodeForScriptURL(sourceURL, script);
+ var uiSourceCode = Bindings.NetworkProject.uiSourceCodeForScriptURL(this._workspace, sourceURL, script);
if (!uiSourceCode) {
var contentProvider = sourceMap.sourceContentProvider(sourceURL, Common.resourceTypes.SourceMapScript);
var embeddedContent = sourceMap.embeddedContentByURL(sourceURL);
@@ -360,7 +359,7 @@ Bindings.CompilerScriptMapping = class {
if (!script)
return;
for (var sourceURL of sourceMap.sourceURLs()) {
- var uiSourceCode = this._networkMapping.uiSourceCodeForScriptURL(sourceURL, script);
+ var uiSourceCode = Bindings.NetworkProject.uiSourceCodeForScriptURL(this._workspace, sourceURL, script);
if (uiSourceCode)
this._unbindUISourceCode(uiSourceCode);
}

Powered by Google App Engine
This is Rietveld 408576698