| 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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 { | 357 { |
| 358 var networkRequest = this._inflightRequestsById[requestId]; | 358 var networkRequest = this._inflightRequestsById[requestId]; |
| 359 if (!networkRequest) { | 359 if (!networkRequest) { |
| 360 // We missed the requestWillBeSent. | 360 // We missed the requestWillBeSent. |
| 361 var eventData = {}; | 361 var eventData = {}; |
| 362 eventData.url = response.url; | 362 eventData.url = response.url; |
| 363 eventData.frameId = frameId; | 363 eventData.frameId = frameId; |
| 364 eventData.loaderId = loaderId; | 364 eventData.loaderId = loaderId; |
| 365 eventData.resourceType = resourceType; | 365 eventData.resourceType = resourceType; |
| 366 eventData.mimeType = response.mimeType; | 366 eventData.mimeType = response.mimeType; |
| 367 var lastModifiedHeader = response.headers["last-modified"]; |
| 368 eventData.lastModified = lastModifiedHeader ? new Date(lastModifiedH
eader) : null; |
| 367 this._manager.dispatchEventToListeners(WebInspector.NetworkManager.E
vents.RequestUpdateDropped, eventData); | 369 this._manager.dispatchEventToListeners(WebInspector.NetworkManager.E
vents.RequestUpdateDropped, eventData); |
| 368 return; | 370 return; |
| 369 } | 371 } |
| 370 | 372 |
| 371 networkRequest.responseReceivedTime = time; | 373 networkRequest.responseReceivedTime = time; |
| 372 networkRequest.setResourceType(WebInspector.resourceTypes[resourceType])
; | 374 networkRequest.setResourceType(WebInspector.resourceTypes[resourceType])
; |
| 373 | 375 |
| 374 this._updateNetworkRequestWithResponse(networkRequest, response); | 376 this._updateNetworkRequestWithResponse(networkRequest, response); |
| 375 | 377 |
| 376 this._updateNetworkRequest(networkRequest); | 378 this._updateNetworkRequest(networkRequest); |
| (...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 927 WebInspector.ResourceLoader.load(url, headers, callback); | 929 WebInspector.ResourceLoader.load(url, headers, callback); |
| 928 }, | 930 }, |
| 929 | 931 |
| 930 __proto__: WebInspector.Object.prototype | 932 __proto__: WebInspector.Object.prototype |
| 931 } | 933 } |
| 932 | 934 |
| 933 /** | 935 /** |
| 934 * @type {!WebInspector.MultitargetNetworkManager} | 936 * @type {!WebInspector.MultitargetNetworkManager} |
| 935 */ | 937 */ |
| 936 WebInspector.multitargetNetworkManager; | 938 WebInspector.multitargetNetworkManager; |
| OLD | NEW |