Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(880)

Side by Side Diff: Source/devtools/front_end/sdk/NetworkManager.js

Issue 1309033003: [DevTools] Show blocked requests in network log. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tyo Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698