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