Chromium Code Reviews| 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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 240 description = e.params.host + ' (' + e.params.proxy + ')'; | 240 description = e.params.host + ' (' + e.params.proxy + ')'; |
| 241 break; | 241 break; |
| 242 case LogSourceType.SOCKET: | 242 case LogSourceType.SOCKET: |
| 243 if (e.params.source_dependency != undefined) { | 243 if (e.params.source_dependency != undefined) { |
| 244 var connectJobSourceEntry = | 244 var connectJobSourceEntry = |
| 245 this.parentView_.getSourceEntry(e.params.source_dependency.id); | 245 this.parentView_.getSourceEntry(e.params.source_dependency.id); |
| 246 if (connectJobSourceEntry) | 246 if (connectJobSourceEntry) |
| 247 description = connectJobSourceEntry.getDescription(); | 247 description = connectJobSourceEntry.getDescription(); |
| 248 } | 248 } |
| 249 break; | 249 break; |
| 250 case LogSourceType.HTTP_STREAM_JOB: | |
|
mmenke
2011/02/28 15:57:28
nit: Might as well merge this with LogSourceType.
| |
| 251 description = e.params.url; | |
| 252 break; | |
| 250 } | 253 } |
| 251 | 254 |
| 252 if (description == undefined) | 255 if (description == undefined) |
| 253 return ''; | 256 return ''; |
| 254 return description; | 257 return description; |
| 255 }; | 258 }; |
| 256 | 259 |
| 257 /** | 260 /** |
| 258 * Returns the starting entry for this source. Conceptually this is the | 261 * Returns the starting entry for this source. Conceptually this is the |
| 259 * first entry that was logged to this source. However, we skip over the | 262 * first entry that was logged to this source. However, we skip over the |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 371 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); | 374 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); |
| 372 } | 375 } |
| 373 }; | 376 }; |
| 374 | 377 |
| 375 SourceEntry.prototype.remove = function() { | 378 SourceEntry.prototype.remove = function() { |
| 376 this.setSelected(false); | 379 this.setSelected(false); |
| 377 this.setIsMatchedByFilter(false); | 380 this.setIsMatchedByFilter(false); |
| 378 this.row_.parentNode.removeChild(this.row_); | 381 this.row_.parentNode.removeChild(this.row_); |
| 379 }; | 382 }; |
| 380 | 383 |
| OLD | NEW |