| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 * Each row in the filtered items list is backed by a SourceEntry. This | 6 * Each row in the filtered items list is backed by a SourceEntry. This |
| 7 * instance contains all of the data pertaining to that row, and notifies | 7 * instance contains all of the data pertaining to that row, and notifies |
| 8 * its parent view (the EventsView) whenever its data changes. | 8 * its parent view (the EventsView) whenever its data changes. |
| 9 * | 9 * |
| 10 * @constructor | 10 * @constructor |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 description = e.params.url; | 227 description = e.params.url; |
| 228 break; | 228 break; |
| 229 case LogSourceType.CONNECT_JOB: | 229 case LogSourceType.CONNECT_JOB: |
| 230 description = e.params.group_name; | 230 description = e.params.group_name; |
| 231 break; | 231 break; |
| 232 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST: | 232 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST: |
| 233 case LogSourceType.HOST_RESOLVER_IMPL_JOB: | 233 case LogSourceType.HOST_RESOLVER_IMPL_JOB: |
| 234 description = e.params.host; | 234 description = e.params.host; |
| 235 break; | 235 break; |
| 236 case LogSourceType.DISK_CACHE_ENTRY: | 236 case LogSourceType.DISK_CACHE_ENTRY: |
| 237 case LogSourceType.MEMORY_CACHE_ENTRY: |
| 237 description = e.params.key; | 238 description = e.params.key; |
| 238 break; | 239 break; |
| 239 case LogSourceType.SPDY_SESSION: | 240 case LogSourceType.SPDY_SESSION: |
| 240 if (e.params.host) | 241 if (e.params.host) |
| 241 description = e.params.host + ' (' + e.params.proxy + ')'; | 242 description = e.params.host + ' (' + e.params.proxy + ')'; |
| 242 break; | 243 break; |
| 243 case LogSourceType.SOCKET: | 244 case LogSourceType.SOCKET: |
| 244 if (e.params.source_dependency != undefined) { | 245 if (e.params.source_dependency != undefined) { |
| 245 var connectJobSourceEntry = | 246 var connectJobSourceEntry = |
| 246 this.parentView_.getSourceEntry(e.params.source_dependency.id); | 247 this.parentView_.getSourceEntry(e.params.source_dependency.id); |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); | 373 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); |
| 373 } | 374 } |
| 374 }; | 375 }; |
| 375 | 376 |
| 376 SourceEntry.prototype.remove = function() { | 377 SourceEntry.prototype.remove = function() { |
| 377 this.setSelected(false); | 378 this.setSelected(false); |
| 378 this.setIsMatchedByFilter(false); | 379 this.setIsMatchedByFilter(false); |
| 379 this.row_.parentNode.removeChild(this.row_); | 380 this.row_.parentNode.removeChild(this.row_); |
| 380 }; | 381 }; |
| 381 | 382 |
| OLD | NEW |