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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 this._finishNetworkRequest(networkRequest, finishTime, encodedDataLength
); | 424 this._finishNetworkRequest(networkRequest, finishTime, encodedDataLength
); |
425 }, | 425 }, |
426 | 426 |
427 /** | 427 /** |
428 * @override | 428 * @override |
429 * @param {!NetworkAgent.RequestId} requestId | 429 * @param {!NetworkAgent.RequestId} requestId |
430 * @param {!NetworkAgent.Timestamp} time | 430 * @param {!NetworkAgent.Timestamp} time |
431 * @param {!PageAgent.ResourceType} resourceType | 431 * @param {!PageAgent.ResourceType} resourceType |
432 * @param {string} localizedDescription | 432 * @param {string} localizedDescription |
433 * @param {boolean=} canceled | 433 * @param {boolean=} canceled |
434 * @param {boolean=} blocked | 434 * @param {!NetworkAgent.BlockedReason=} blockedReason |
435 */ | 435 */ |
436 loadingFailed: function(requestId, time, resourceType, localizedDescription,
canceled, blocked) | 436 loadingFailed: function(requestId, time, resourceType, localizedDescription,
canceled, blockedReason) |
437 { | 437 { |
438 var networkRequest = this._inflightRequestsById[requestId]; | 438 var networkRequest = this._inflightRequestsById[requestId]; |
439 if (!networkRequest) | 439 if (!networkRequest) |
440 return; | 440 return; |
441 | 441 |
442 networkRequest.failed = true; | 442 networkRequest.failed = true; |
443 networkRequest.setResourceType(WebInspector.resourceTypes[resourceType])
; | 443 networkRequest.setResourceType(WebInspector.resourceTypes[resourceType])
; |
444 networkRequest.canceled = canceled; | 444 networkRequest.canceled = canceled; |
445 networkRequest.blocked = blocked; | 445 if (blockedReason) |
| 446 networkRequest.setBlockedReason(blockedReason); |
446 networkRequest.localizedFailDescription = localizedDescription; | 447 networkRequest.localizedFailDescription = localizedDescription; |
447 this._finishNetworkRequest(networkRequest, time, -1); | 448 this._finishNetworkRequest(networkRequest, time, -1); |
448 }, | 449 }, |
449 | 450 |
450 /** | 451 /** |
451 * @override | 452 * @override |
452 * @param {!NetworkAgent.RequestId} requestId | 453 * @param {!NetworkAgent.RequestId} requestId |
453 * @param {string} requestURL | 454 * @param {string} requestURL |
454 */ | 455 */ |
455 webSocketCreated: function(requestId, requestURL) | 456 webSocketCreated: function(requestId, requestURL) |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 target.networkAgent().removeBlockedURL(url); | 764 target.networkAgent().removeBlockedURL(url); |
764 }, | 765 }, |
765 | 766 |
766 __proto__: WebInspector.Object.prototype | 767 __proto__: WebInspector.Object.prototype |
767 } | 768 } |
768 | 769 |
769 /** | 770 /** |
770 * @type {!WebInspector.MultitargetNetworkManager} | 771 * @type {!WebInspector.MultitargetNetworkManager} |
771 */ | 772 */ |
772 WebInspector.multitargetNetworkManager; | 773 WebInspector.multitargetNetworkManager; |
OLD | NEW |