| 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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 return getKeyWithValue(LogEventType, e.type); | 216 return getKeyWithValue(LogEventType, e.type); |
| 217 } | 217 } |
| 218 | 218 |
| 219 if (e.params == undefined) | 219 if (e.params == undefined) |
| 220 return ''; | 220 return ''; |
| 221 | 221 |
| 222 var description = ''; | 222 var description = ''; |
| 223 switch (e.source.type) { | 223 switch (e.source.type) { |
| 224 case LogSourceType.URL_REQUEST: | 224 case LogSourceType.URL_REQUEST: |
| 225 case LogSourceType.SOCKET_STREAM: | 225 case LogSourceType.SOCKET_STREAM: |
| 226 case LogSourceType.HTTP_STREAM_JOB: |
| 226 description = e.params.url; | 227 description = e.params.url; |
| 227 break; | 228 break; |
| 228 case LogSourceType.CONNECT_JOB: | 229 case LogSourceType.CONNECT_JOB: |
| 229 description = e.params.group_name; | 230 description = e.params.group_name; |
| 230 break; | 231 break; |
| 231 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST: | 232 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST: |
| 232 case LogSourceType.HOST_RESOLVER_IMPL_JOB: | 233 case LogSourceType.HOST_RESOLVER_IMPL_JOB: |
| 233 description = e.params.host; | 234 description = e.params.host; |
| 234 break; | 235 break; |
| 235 case LogSourceType.DISK_CACHE_ENTRY: | 236 case LogSourceType.DISK_CACHE_ENTRY: |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); | 372 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); |
| 372 } | 373 } |
| 373 }; | 374 }; |
| 374 | 375 |
| 375 SourceEntry.prototype.remove = function() { | 376 SourceEntry.prototype.remove = function() { |
| 376 this.setSelected(false); | 377 this.setSelected(false); |
| 377 this.setIsMatchedByFilter(false); | 378 this.setIsMatchedByFilter(false); |
| 378 this.row_.parentNode.removeChild(this.row_); | 379 this.row_.parentNode.removeChild(this.row_); |
| 379 }; | 380 }; |
| 380 | 381 |
| OLD | NEW |