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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/Script.js

Issue 2735133004: DevTools coverage: get script/stylesheet size directly, do not request content (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/Script.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/Script.js b/third_party/WebKit/Source/devtools/front_end/sdk/Script.js
index 10413cfa00d6716524ee482e4b7a5bf9df210df8..eaf3408a1dde36eb41950813a91a198aafba447f 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/Script.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/Script.js
@@ -40,23 +40,13 @@ SDK.Script = class {
* @param {string} hash
* @param {boolean} isContentScript
* @param {boolean} isLiveEdit
- * @param {string=} sourceMapURL
- * @param {boolean=} hasSourceURL
+ * @param {string|undefined} sourceMapURL
+ * @param {boolean} hasSourceURL
+ * @param {number} length
*/
constructor(
- debuggerModel,
- scriptId,
- sourceURL,
- startLine,
- startColumn,
- endLine,
- endColumn,
- executionContextId,
- hash,
- isContentScript,
- isLiveEdit,
- sourceMapURL,
- hasSourceURL) {
+ debuggerModel, scriptId, sourceURL, startLine, startColumn, endLine, endColumn, executionContextId, hash,
+ isContentScript, isLiveEdit, sourceMapURL, hasSourceURL, length) {
this.debuggerModel = debuggerModel;
this.scriptId = scriptId;
this.sourceURL = sourceURL;
@@ -71,6 +61,7 @@ SDK.Script = class {
this._isLiveEdit = isLiveEdit;
this.sourceMapURL = sourceMapURL;
this.hasSourceURL = hasSourceURL;
+ this.contentLength = length;
this._originalContentProvider = null;
this._originalSource = null;
}
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/DebuggerModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698