| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |