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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.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/NetworkMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js
deleted file mode 100644
index d87766cae4198b7fbf8b9f0c91281a553520706e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/devtools/front_end/bindings/NetworkMapping.js
+++ /dev/null
@@ -1,78 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-/**
- * @unrestricted
- */
-Bindings.NetworkMapping = class {
- /**
- * @param {!Workspace.Workspace} workspace
- */
- constructor(workspace) {
- this._workspace = workspace;
- }
-
- /**
- * @param {!SDK.Target} target
- * @param {?SDK.ResourceTreeFrame} frame
- * @param {string} url
- * @return {?Workspace.UISourceCode}
- */
- _networkUISourceCodeForURL(target, frame, url) {
- return this._workspace.uiSourceCode(Bindings.NetworkProject.projectId(target, frame, false), url);
- }
-
- /**
- * @param {!SDK.Target} target
- * @param {?SDK.ResourceTreeFrame} frame
- * @param {string} url
- * @return {?Workspace.UISourceCode}
- */
- _contentScriptUISourceCodeForURL(target, frame, url) {
- return this._workspace.uiSourceCode(Bindings.NetworkProject.projectId(target, frame, true), url);
- }
-
- /**
- * @param {!SDK.Target} target
- * @param {?SDK.ResourceTreeFrame} frame
- * @param {string} url
- * @return {?Workspace.UISourceCode}
- */
- _uiSourceCodeForURL(target, frame, url) {
- return this._networkUISourceCodeForURL(target, frame, url) ||
- this._contentScriptUISourceCodeForURL(target, frame, url);
- }
-
- /**
- * @param {string} url
- * @param {!SDK.Script} script
- * @return {?Workspace.UISourceCode}
- */
- uiSourceCodeForScriptURL(url, script) {
- var frame = SDK.ResourceTreeFrame.fromScript(script);
- return this._uiSourceCodeForURL(script.target(), frame, url);
- }
-
- /**
- * @param {string} url
- * @param {!SDK.CSSStyleSheetHeader} header
- * @return {?Workspace.UISourceCode}
- */
- uiSourceCodeForStyleURL(url, header) {
- var frame = SDK.ResourceTreeFrame.fromStyleSheet(header);
- return this._uiSourceCodeForURL(header.target(), frame, url);
- }
-
- /**
- * @param {string} url
- * @return {?Workspace.UISourceCode}
- */
- uiSourceCodeForURLForAnyTarget(url) {
- return Workspace.workspace.uiSourceCodeForURL(url);
- }
-};
-
-/**
- * @type {!Bindings.NetworkMapping}
- */
-Bindings.networkMapping;

Powered by Google App Engine
This is Rietveld 408576698