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

Side by Side Diff: Source/devtools/front_end/network/BlockedURLsPane.js

Issue 1315043008: [DevTools] Show blocked requests in Network panel. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebased 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 // Copyright (c) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 */ 8 */
9 WebInspector.BlockedURLsPane = function() 9 WebInspector.BlockedURLsPane = function()
10 { 10 {
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 { 229 {
230 this._blockedCountForUrl.clear(); 230 this._blockedCountForUrl.clear();
231 }, 231 },
232 232
233 /** 233 /**
234 * @param {!WebInspector.Event} event 234 * @param {!WebInspector.Event} event
235 */ 235 */
236 _onRequestFinished: function(event) 236 _onRequestFinished: function(event)
237 { 237 {
238 var request = /** @type {!WebInspector.NetworkRequest} */ (event.data); 238 var request = /** @type {!WebInspector.NetworkRequest} */ (event.data);
239 if (request.blocked) { 239 if (request.wasBlocked()) {
240 var count = this._blockedCountForUrl.get(request.url) || 0; 240 var count = this._blockedCountForUrl.get(request.url) || 0;
241 this._blockedCountForUrl.set(request.url, count + 1); 241 this._blockedCountForUrl.set(request.url, count + 1);
242 this._updateThrottler.schedule(this._update.bind(this)); 242 this._updateThrottler.schedule(this._update.bind(this));
243 } 243 }
244 }, 244 },
245 245
246 __proto__: WebInspector.VBox.prototype 246 __proto__: WebInspector.VBox.prototype
247 } 247 }
248 248
249 249
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 * @override 281 * @override
282 * @return {!Element} 282 * @return {!Element}
283 */ 283 */
284 element: function() 284 element: function()
285 { 285 {
286 return this._element; 286 return this._element;
287 }, 287 },
288 288
289 __proto__: WebInspector.Object.prototype 289 __proto__: WebInspector.Object.prototype
290 } 290 }
OLDNEW
« no previous file with comments | « Source/core/loader/FrameFetchContext.cpp ('k') | Source/devtools/front_end/network/NetworkDataGridNode.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698