| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 super(); | 45 super(); |
| 46 | 46 |
| 47 this._networkManager = networkManager; | 47 this._networkManager = networkManager; |
| 48 this._requestId = requestId; | 48 this._requestId = requestId; |
| 49 this.setUrl(url); | 49 this.setUrl(url); |
| 50 this._documentURL = documentURL; | 50 this._documentURL = documentURL; |
| 51 this._frameId = frameId; | 51 this._frameId = frameId; |
| 52 this._loaderId = loaderId; | 52 this._loaderId = loaderId; |
| 53 /** @type {?Protocol.Network.Initiator} */ | 53 /** @type {?Protocol.Network.Initiator} */ |
| 54 this._initiator = initiator; | 54 this._initiator = initiator; |
| 55 /** @type {?SDK.NetworkRequest} */ |
| 56 this._redirectSource = null; |
| 55 this._issueTime = -1; | 57 this._issueTime = -1; |
| 56 this._startTime = -1; | 58 this._startTime = -1; |
| 57 this._endTime = -1; | 59 this._endTime = -1; |
| 58 /** @type {!Protocol.Network.BlockedReason|undefined} */ | 60 /** @type {!Protocol.Network.BlockedReason|undefined} */ |
| 59 this._blockedReason = undefined; | 61 this._blockedReason = undefined; |
| 60 | 62 |
| 61 this.statusCode = 0; | 63 this.statusCode = 0; |
| 62 this.statusText = ''; | 64 this.statusText = ''; |
| 63 this.requestMethod = ''; | 65 this.requestMethod = ''; |
| 64 this.requestTime = 0; | 66 this.requestTime = 0; |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 582 /** | 584 /** |
| 583 * @return {string} | 585 * @return {string} |
| 584 */ | 586 */ |
| 585 get scheme() { | 587 get scheme() { |
| 586 return this._parsedURL.scheme; | 588 return this._parsedURL.scheme; |
| 587 } | 589 } |
| 588 | 590 |
| 589 /** | 591 /** |
| 590 * @return {?SDK.NetworkRequest} | 592 * @return {?SDK.NetworkRequest} |
| 591 */ | 593 */ |
| 592 get redirectSource() { | 594 redirectSource() { |
| 593 if (this.redirects && this.redirects.length > 0) | |
| 594 return this.redirects[this.redirects.length - 1]; | |
| 595 return this._redirectSource; | 595 return this._redirectSource; |
| 596 } | 596 } |
| 597 | 597 |
| 598 /** | 598 /** |
| 599 * @param {?SDK.NetworkRequest} x | 599 * @param {?SDK.NetworkRequest} originatingRequest |
| 600 */ | 600 */ |
| 601 set redirectSource(x) { | 601 setRedirectSource(originatingRequest) { |
| 602 this._redirectSource = x; | 602 this._redirectSource = originatingRequest; |
| 603 } | 603 } |
| 604 | 604 |
| 605 /** | 605 /** |
| 606 * @return {!Array.<!SDK.NetworkRequest.NameValue>} | 606 * @return {!Array.<!SDK.NetworkRequest.NameValue>} |
| 607 */ | 607 */ |
| 608 requestHeaders() { | 608 requestHeaders() { |
| 609 return this._requestHeaders || []; | 609 return this._requestHeaders || []; |
| 610 } | 610 } |
| 611 | 611 |
| 612 /** | 612 /** |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1128 }; | 1128 }; |
| 1129 | 1129 |
| 1130 /** @typedef {!{type: SDK.NetworkRequest.WebSocketFrameType, time: number, text:
string, opCode: number, mask: boolean}} */ | 1130 /** @typedef {!{type: SDK.NetworkRequest.WebSocketFrameType, time: number, text:
string, opCode: number, mask: boolean}} */ |
| 1131 SDK.NetworkRequest.WebSocketFrame; | 1131 SDK.NetworkRequest.WebSocketFrame; |
| 1132 | 1132 |
| 1133 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}}
*/ | 1133 /** @typedef {!{time: number, eventName: string, eventId: string, data: string}}
*/ |
| 1134 SDK.NetworkRequest.EventSourceMessage; | 1134 SDK.NetworkRequest.EventSourceMessage; |
| 1135 | 1135 |
| 1136 /** @typedef {!{error: ?string, content: ?string, encoded: boolean}} */ | 1136 /** @typedef {!{error: ?string, content: ?string, encoded: boolean}} */ |
| 1137 SDK.NetworkRequest.ContentData; | 1137 SDK.NetworkRequest.ContentData; |
| OLD | NEW |