| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 if (response.encodedDataLength >= 0) | 192 if (response.encodedDataLength >= 0) |
| 193 networkRequest.setTransferSize(response.encodedDataLength); | 193 networkRequest.setTransferSize(response.encodedDataLength); |
| 194 if (response.headersText) | 194 if (response.headersText) |
| 195 networkRequest.responseHeadersText = response.headersText; | 195 networkRequest.responseHeadersText = response.headersText; |
| 196 if (response.requestHeaders) { | 196 if (response.requestHeaders) { |
| 197 networkRequest.setRequestHeaders(this._headersMapToHeadersArray(resp
onse.requestHeaders)); | 197 networkRequest.setRequestHeaders(this._headersMapToHeadersArray(resp
onse.requestHeaders)); |
| 198 networkRequest.setRequestHeadersText(response.requestHeadersText ||
""); | 198 networkRequest.setRequestHeadersText(response.requestHeadersText ||
""); |
| 199 } | 199 } |
| 200 | 200 |
| 201 networkRequest.connectionReused = response.connectionReused; | 201 networkRequest.connectionReused = response.connectionReused; |
| 202 networkRequest.connectionId = response.connectionId; | 202 networkRequest.connectionId = String(response.connectionId); |
| 203 if (response.remoteIPAddress) | 203 if (response.remoteIPAddress) |
| 204 networkRequest.setRemoteAddress(response.remoteIPAddress, response.r
emotePort || -1); | 204 networkRequest.setRemoteAddress(response.remoteIPAddress, response.r
emotePort || -1); |
| 205 | 205 |
| 206 if (response.fromServiceWorker) | 206 if (response.fromServiceWorker) |
| 207 networkRequest.fetchedViaServiceWorker = true; | 207 networkRequest.fetchedViaServiceWorker = true; |
| 208 else if (response.fromDiskCache) | 208 else if (response.fromDiskCache) |
| 209 networkRequest.cached = true; | 209 networkRequest.cached = true; |
| 210 else | 210 else |
| 211 networkRequest.timing = response.timing; | 211 networkRequest.timing = response.timing; |
| 212 | 212 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 * @param {!NetworkAgent.LoaderId} loaderId | 565 * @param {!NetworkAgent.LoaderId} loaderId |
| 566 * @param {string} url | 566 * @param {string} url |
| 567 * @param {string} documentURL | 567 * @param {string} documentURL |
| 568 * @param {?NetworkAgent.Initiator} initiator | 568 * @param {?NetworkAgent.Initiator} initiator |
| 569 */ | 569 */ |
| 570 _createNetworkRequest: function(requestId, frameId, loaderId, url, documentU
RL, initiator) | 570 _createNetworkRequest: function(requestId, frameId, loaderId, url, documentU
RL, initiator) |
| 571 { | 571 { |
| 572 return new WebInspector.NetworkRequest(this._manager._target, requestId,
url, documentURL, frameId, loaderId, initiator); | 572 return new WebInspector.NetworkRequest(this._manager._target, requestId,
url, documentURL, frameId, loaderId, initiator); |
| 573 } | 573 } |
| 574 } | 574 } |
| OLD | NEW |