Chromium Code Reviews| 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(Common.resourceTypes[resourceType] || Protoco l.Page.ResourceType.Other); |
|
lushnikov
2016/12/02 01:52:23
nit: it's a bit hacky to query map with the undefi
allada
2016/12/02 02:33:51
Done.
| |
| 330 | 330 |
| 331 this._startNetworkRequest(networkRequest); | 331 this._startNetworkRequest(networkRequest); |
| 332 } | 332 } |
| 333 | 333 |
| 334 /** | 334 /** |
| 335 * @override | 335 * @override |
| 336 * @param {!Protocol.Network.RequestId} requestId | 336 * @param {!Protocol.Network.RequestId} requestId |
| 337 */ | 337 */ |
| 338 requestServedFromCache(requestId) { | 338 requestServedFromCache(requestId) { |
| 339 var networkRequest = this._inflightRequestsById[requestId]; | 339 var networkRequest = this._inflightRequestsById[requestId]; |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 886 SDK.MultitargetNetworkManager.Events = { | 886 SDK.MultitargetNetworkManager.Events = { |
| 887 ConditionsChanged: Symbol('ConditionsChanged'), | 887 ConditionsChanged: Symbol('ConditionsChanged'), |
| 888 UserAgentChanged: Symbol('UserAgentChanged') | 888 UserAgentChanged: Symbol('UserAgentChanged') |
| 889 }; | 889 }; |
| 890 | 890 |
| 891 | 891 |
| 892 /** | 892 /** |
| 893 * @type {!SDK.MultitargetNetworkManager} | 893 * @type {!SDK.MultitargetNetworkManager} |
| 894 */ | 894 */ |
| 895 SDK.multitargetNetworkManager; | 895 SDK.multitargetNetworkManager; |
| OLD | NEW |