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 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 this._finishNetworkRequest(networkRequest, finishTime, encodedDataLength
); | 422 this._finishNetworkRequest(networkRequest, finishTime, encodedDataLength
); |
423 }, | 423 }, |
424 | 424 |
425 /** | 425 /** |
426 * @override | 426 * @override |
427 * @param {!NetworkAgent.RequestId} requestId | 427 * @param {!NetworkAgent.RequestId} requestId |
428 * @param {!NetworkAgent.Timestamp} time | 428 * @param {!NetworkAgent.Timestamp} time |
429 * @param {!PageAgent.ResourceType} resourceType | 429 * @param {!PageAgent.ResourceType} resourceType |
430 * @param {string} localizedDescription | 430 * @param {string} localizedDescription |
431 * @param {boolean=} canceled | 431 * @param {boolean=} canceled |
| 432 * @param {boolean=} blocked |
432 */ | 433 */ |
433 loadingFailed: function(requestId, time, resourceType, localizedDescription,
canceled) | 434 loadingFailed: function(requestId, time, resourceType, localizedDescription,
canceled, blocked) |
434 { | 435 { |
435 var networkRequest = this._inflightRequestsById[requestId]; | 436 var networkRequest = this._inflightRequestsById[requestId]; |
436 if (!networkRequest) | 437 if (!networkRequest) |
437 return; | 438 return; |
438 | 439 |
439 networkRequest.failed = true; | 440 networkRequest.failed = true; |
440 networkRequest.setResourceType(WebInspector.resourceTypes[resourceType])
; | 441 networkRequest.setResourceType(WebInspector.resourceTypes[resourceType])
; |
441 networkRequest.canceled = canceled; | 442 networkRequest.canceled = canceled; |
| 443 networkRequest.blocked = blocked; |
442 networkRequest.localizedFailDescription = localizedDescription; | 444 networkRequest.localizedFailDescription = localizedDescription; |
443 this._finishNetworkRequest(networkRequest, time, -1); | 445 this._finishNetworkRequest(networkRequest, time, -1); |
444 }, | 446 }, |
445 | 447 |
446 /** | 448 /** |
447 * @override | 449 * @override |
448 * @param {!NetworkAgent.RequestId} requestId | 450 * @param {!NetworkAgent.RequestId} requestId |
449 * @param {string} requestURL | 451 * @param {string} requestURL |
450 */ | 452 */ |
451 webSocketCreated: function(requestId, requestURL) | 453 webSocketCreated: function(requestId, requestURL) |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 return this._blockedURLs; | 754 return this._blockedURLs; |
753 }, | 755 }, |
754 | 756 |
755 __proto__: WebInspector.Object.prototype | 757 __proto__: WebInspector.Object.prototype |
756 } | 758 } |
757 | 759 |
758 /** | 760 /** |
759 * @type {!WebInspector.MultitargetNetworkManager} | 761 * @type {!WebInspector.MultitargetNetworkManager} |
760 */ | 762 */ |
761 WebInspector.multitargetNetworkManager; | 763 WebInspector.multitargetNetworkManager; |
OLD | NEW |