OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 var SourceEntry = (function() { | 5 var SourceEntry = (function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 /** | 8 /** |
9 * A SourceEntry gathers all log entries with the same source. | 9 * A SourceEntry gathers all log entries with the same source. |
10 * | 10 * |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 if (e.params == undefined) { | 76 if (e.params == undefined) { |
77 return; | 77 return; |
78 } | 78 } |
79 | 79 |
80 switch (e.source.type) { | 80 switch (e.source.type) { |
81 case EventSourceType.URL_REQUEST: | 81 case EventSourceType.URL_REQUEST: |
82 // TODO(ricea): Remove SOCKET_STREAM after M41 is released. | 82 // TODO(ricea): Remove SOCKET_STREAM after M41 is released. |
83 case EventSourceType.SOCKET_STREAM: | 83 case EventSourceType.SOCKET_STREAM: |
84 case EventSourceType.HTTP_STREAM_JOB: | 84 case EventSourceType.HTTP_STREAM_JOB: |
85 case EventSourceType.ASYNC_REVALIDATION: | |
86 this.description_ = e.params.url; | 85 this.description_ = e.params.url; |
87 break; | 86 break; |
88 case EventSourceType.CONNECT_JOB: | 87 case EventSourceType.CONNECT_JOB: |
89 this.description_ = e.params.group_name; | 88 this.description_ = e.params.group_name; |
90 break; | 89 break; |
91 case EventSourceType.HOST_RESOLVER_IMPL_JOB: | 90 case EventSourceType.HOST_RESOLVER_IMPL_JOB: |
92 case EventSourceType.HOST_RESOLVER_IMPL_PROC_TASK: | 91 case EventSourceType.HOST_RESOLVER_IMPL_PROC_TASK: |
93 this.description_ = e.params.host; | 92 this.description_ = e.params.host; |
94 break; | 93 break; |
95 case EventSourceType.DISK_CACHE_ENTRY: | 94 case EventSourceType.DISK_CACHE_ENTRY: |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 this.entries_, | 340 this.entries_, |
342 SourceTracker.getInstance().getPrivacyStripping(), | 341 SourceTracker.getInstance().getPrivacyStripping(), |
343 SourceTracker.getInstance().getUseRelativeTimes() ? | 342 SourceTracker.getInstance().getUseRelativeTimes() ? |
344 timeutil.getBaseTime() : 0, | 343 timeutil.getBaseTime() : 0, |
345 Constants.clientInfo.numericDate); | 344 Constants.clientInfo.numericDate); |
346 }, | 345 }, |
347 }; | 346 }; |
348 | 347 |
349 return SourceEntry; | 348 return SourceEntry; |
350 })(); | 349 })(); |
OLD | NEW |