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

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

Issue 2921053002: [Devtools] Removed "redirects" from NetworkRequest to use redirectSource (Closed)
Patch Set: Merge branch 'MOVE_NETWORK_STUFF_AROUND' into REMOVE_REDIRECTS_REBASE Created 3 years, 6 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/NetworkManager.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/NetworkRequest.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
index 7de550bf239b897c51e70345d145004285167c4f..12daac355a6bfda4a488dbac8cef388d7b271aba 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/NetworkRequest.js
@@ -52,6 +52,8 @@ SDK.NetworkRequest = class extends Common.Object {
this._loaderId = loaderId;
/** @type {?Protocol.Network.Initiator} */
this._initiator = initiator;
+ /** @type {?SDK.NetworkRequest} */
+ this._redirectSource = null;
this._issueTime = -1;
this._startTime = -1;
this._endTime = -1;
@@ -589,17 +591,15 @@ SDK.NetworkRequest = class extends Common.Object {
/**
* @return {?SDK.NetworkRequest}
*/
- get redirectSource() {
- if (this.redirects && this.redirects.length > 0)
- return this.redirects[this.redirects.length - 1];
+ redirectSource() {
return this._redirectSource;
}
/**
- * @param {?SDK.NetworkRequest} x
+ * @param {?SDK.NetworkRequest} originatingRequest
*/
- set redirectSource(x) {
- this._redirectSource = x;
+ setRedirectSource(originatingRequest) {
+ this._redirectSource = originatingRequest;
}
/**
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/NetworkManager.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698