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

Unified Diff: third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js

Issue 2588503002: DevTools: Cache the original content on UISourceCode (Closed)
Patch Set: Move logic to the project level Created 4 years 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/workspace/Workspace.js
diff --git a/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js b/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
index 35c15398b42939bc7e0f796073a67642d08f6e26..c7c4d9405e32a6176e96735e6ba29da704cffc90 100644
--- a/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
+++ b/third_party/WebKit/Source/devtools/front_end/workspace/Workspace.js
@@ -104,6 +104,12 @@ Workspace.Project.prototype = {
requestFileContent(uiSourceCode, callback) {},
/**
+ * @param {!Workspace.UISourceCode} uiSourceCode
+ * @return {!Promise<?string>}
+ */
+ requestOriginalFileContent(uiSourceCode) {},
+
+ /**
* @return {boolean}
*/
canSetFileContent() {},
@@ -111,7 +117,7 @@ Workspace.Project.prototype = {
/**
* @param {!Workspace.UISourceCode} uiSourceCode
* @param {string} newContent
- * @param {function(?string)} callback
+ * @param {function()} callback
*/
setFileContent(uiSourceCode, newContent, callback) {},

Powered by Google App Engine
This is Rietveld 408576698