| 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 case LogSourceType.SOCKET_STREAM: | 225 case LogSourceType.SOCKET_STREAM: |
| 226 description = e.params.url; | 226 description = e.params.url; |
| 227 break; | 227 break; |
| 228 case LogSourceType.CONNECT_JOB: | 228 case LogSourceType.CONNECT_JOB: |
| 229 description = e.params.group_name; | 229 description = e.params.group_name; |
| 230 break; | 230 break; |
| 231 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST: | 231 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST: |
| 232 case LogSourceType.HOST_RESOLVER_IMPL_JOB: | 232 case LogSourceType.HOST_RESOLVER_IMPL_JOB: |
| 233 description = e.params.host; | 233 description = e.params.host; |
| 234 break; | 234 break; |
| 235 case LogSourceType.DISK_CACHE_ENTRY: | |
| 236 description = e.params.key; | |
| 237 break; | |
| 238 case LogSourceType.SPDY_SESSION: | 235 case LogSourceType.SPDY_SESSION: |
| 239 if (e.params.host) | 236 if (e.params.host) |
| 240 description = e.params.host + ' (' + e.params.proxy + ')'; | 237 description = e.params.host + ' (' + e.params.proxy + ')'; |
| 241 break; | 238 break; |
| 242 case LogSourceType.SOCKET: | 239 case LogSourceType.SOCKET: |
| 243 if (e.params.source_dependency != undefined) { | 240 if (e.params.source_dependency != undefined) { |
| 244 var connectJobSourceEntry = | 241 var connectJobSourceEntry = |
| 245 this.parentView_.getSourceEntry(e.params.source_dependency.id); | 242 this.parentView_.getSourceEntry(e.params.source_dependency.id); |
| 246 if (connectJobSourceEntry) | 243 if (connectJobSourceEntry) |
| 247 description = connectJobSourceEntry.getDescription(); | 244 description = connectJobSourceEntry.getDescription(); |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); | 368 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); |
| 372 } | 369 } |
| 373 }; | 370 }; |
| 374 | 371 |
| 375 SourceEntry.prototype.remove = function() { | 372 SourceEntry.prototype.remove = function() { |
| 376 this.setSelected(false); | 373 this.setSelected(false); |
| 377 this.setIsMatchedByFilter(false); | 374 this.setIsMatchedByFilter(false); |
| 378 this.row_.parentNode.removeChild(this.row_); | 375 this.row_.parentNode.removeChild(this.row_); |
| 379 }; | 376 }; |
| 380 | 377 |
| OLD | NEW |