| 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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 if (!redirectResponse) | 319 if (!redirectResponse) |
| 320 return; | 320 return; |
| 321 this.responseReceived(requestId, frameId, loaderId, time, Protocol.Page.Re
sourceType.Other, redirectResponse); | 321 this.responseReceived(requestId, frameId, loaderId, time, Protocol.Page.Re
sourceType.Other, redirectResponse); |
| 322 networkRequest = this._appendRedirect(requestId, time, request.url); | 322 networkRequest = this._appendRedirect(requestId, time, request.url); |
| 323 } else { | 323 } else { |
| 324 networkRequest = this._createNetworkRequest(requestId, frameId, loaderId,
request.url, documentURL, initiator); | 324 networkRequest = this._createNetworkRequest(requestId, frameId, loaderId,
request.url, documentURL, initiator); |
| 325 } | 325 } |
| 326 networkRequest.hasNetworkData = true; | 326 networkRequest.hasNetworkData = true; |
| 327 this._updateNetworkRequestWithRequest(networkRequest, request); | 327 this._updateNetworkRequestWithRequest(networkRequest, request); |
| 328 networkRequest.setIssueTime(time, wallTime); | 328 networkRequest.setIssueTime(time, wallTime); |
| 329 networkRequest.setResourceType(Common.resourceTypes[resourceType]); | 329 networkRequest.setResourceType( |
| 330 resourceType ? Common.resourceTypes[resourceType] : Protocol.Page.Resour
ceType.Other); |
| 330 | 331 |
| 331 this._startNetworkRequest(networkRequest); | 332 this._startNetworkRequest(networkRequest); |
| 332 } | 333 } |
| 333 | 334 |
| 334 /** | 335 /** |
| 335 * @override | 336 * @override |
| 336 * @param {!Protocol.Network.RequestId} requestId | 337 * @param {!Protocol.Network.RequestId} requestId |
| 337 */ | 338 */ |
| 338 requestServedFromCache(requestId) { | 339 requestServedFromCache(requestId) { |
| 339 var networkRequest = this._inflightRequestsById[requestId]; | 340 var networkRequest = this._inflightRequestsById[requestId]; |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 886 SDK.MultitargetNetworkManager.Events = { | 887 SDK.MultitargetNetworkManager.Events = { |
| 887 ConditionsChanged: Symbol('ConditionsChanged'), | 888 ConditionsChanged: Symbol('ConditionsChanged'), |
| 888 UserAgentChanged: Symbol('UserAgentChanged') | 889 UserAgentChanged: Symbol('UserAgentChanged') |
| 889 }; | 890 }; |
| 890 | 891 |
| 891 | 892 |
| 892 /** | 893 /** |
| 893 * @type {!SDK.MultitargetNetworkManager} | 894 * @type {!SDK.MultitargetNetworkManager} |
| 894 */ | 895 */ |
| 895 SDK.multitargetNetworkManager; | 896 SDK.multitargetNetworkManager; |
| OLD | NEW |