OLD | NEW |
---|---|
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @param {!WebInspector.Workspace} workspace | 7 * @param {!WebInspector.Workspace} workspace |
8 * @param {!WebInspector.FileSystemMapping} fileSystemMapping | 8 * @param {!WebInspector.FileSystemMapping} fileSystemMapping |
9 */ | 9 */ |
10 WebInspector.NetworkMapping = function(workspace, fileSystemMapping) | 10 WebInspector.NetworkMapping = function(workspace, fileSystemMapping) |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
85 { | 85 { |
86 for (var target of WebInspector.targetManager.targets()) { | 86 for (var target of WebInspector.targetManager.targets()) { |
87 var result = this.uiSourceCodeForURL(url, target); | 87 var result = this.uiSourceCodeForURL(url, target); |
88 if (result) | 88 if (result) |
89 return result; | 89 return result; |
90 } | 90 } |
91 return null; | 91 return null; |
92 }, | 92 }, |
93 | 93 |
94 /** | 94 /** |
95 * @param {string} url | |
96 * @return {?WebInspector.UISourceCode} | |
97 */ | |
98 uiSourceCodeFromURL: function(url) { | |
99 return this.uiSourceCodeForURLForAnyTarget(url) || this._workspace.uiSou rceCodeForFilePath(url); | |
pfeldman
2015/08/13 21:15:46
When is it used?
wes
2015/08/14 01:13:32
Solely in the extension server (get/set line messa
pfeldman
2015/08/17 21:15:51
Then it should be at its call site since it discar
| |
100 }, | |
101 | |
102 /** | |
95 * @param {string} fileSystemPath | 103 * @param {string} fileSystemPath |
96 * @param {string} filePath | 104 * @param {string} filePath |
97 * @return {string} | 105 * @return {string} |
98 */ | 106 */ |
99 urlForPath: function(fileSystemPath, filePath) | 107 urlForPath: function(fileSystemPath, filePath) |
100 { | 108 { |
101 return this._fileSystemMapping.urlForPath(fileSystemPath, filePath); | 109 return this._fileSystemMapping.urlForPath(fileSystemPath, filePath); |
102 }, | 110 }, |
103 | 111 |
104 /** | 112 /** |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
152 } | 160 } |
153 | 161 |
154 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC odeAdded, listener, this); | 162 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC odeAdded, listener, this); |
155 }, | 163 }, |
156 } | 164 } |
157 | 165 |
158 /** | 166 /** |
159 * @type {!WebInspector.NetworkMapping} | 167 * @type {!WebInspector.NetworkMapping} |
160 */ | 168 */ |
161 WebInspector.networkMapping; | 169 WebInspector.networkMapping; |
OLD | NEW |