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