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

Unified Diff: Source/devtools/front_end/common/StaticContentProvider.js

Issue 697563003: DevTools: do not show compiled script while source maps are being loaded. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: w/ tests Created 6 years, 2 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
Index: Source/devtools/front_end/common/StaticContentProvider.js
diff --git a/Source/devtools/front_end/common/StaticContentProvider.js b/Source/devtools/front_end/common/StaticContentProvider.js
index 0b8c8bda60ac4395e3c390328e40cd718acfa45c..268092661848791527784dbc309d141725336026 100644
--- a/Source/devtools/front_end/common/StaticContentProvider.js
+++ b/Source/devtools/front_end/common/StaticContentProvider.js
@@ -7,11 +7,13 @@
* @implements {WebInspector.ContentProvider}
* @param {!WebInspector.ResourceType} contentType
* @param {string} content
+ * @param {string=} contentURL
*/
-WebInspector.StaticContentProvider = function(contentType, content)
+WebInspector.StaticContentProvider = function(contentType, content, contentURL)
{
this._content = content;
this._contentType = contentType;
+ this._contentURL = contentURL || "";
}
/**
@@ -38,7 +40,7 @@ WebInspector.StaticContentProvider.prototype = {
*/
contentURL: function()
{
- return "";
+ return this._contentURL;
},
/**
« no previous file with comments | « Source/devtools/front_end/bindings/CompilerScriptMapping.js ('k') | Source/devtools/front_end/sources/UISourceCodeFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698