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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 74 } |
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 case EventSourceType.SOCKET_STREAM: | 82 case EventSourceType.SOCKET_STREAM: |
83 case EventSourceType.HTTP_STREAM_JOB: | 83 case EventSourceType.HTTP_STREAM_JOB: |
| 84 case EventSourceType.ASYNC_REVALIDATION: |
84 this.description_ = e.params.url; | 85 this.description_ = e.params.url; |
85 break; | 86 break; |
86 case EventSourceType.CONNECT_JOB: | 87 case EventSourceType.CONNECT_JOB: |
87 this.description_ = e.params.group_name; | 88 this.description_ = e.params.group_name; |
88 break; | 89 break; |
89 case EventSourceType.HOST_RESOLVER_IMPL_REQUEST: | 90 case EventSourceType.HOST_RESOLVER_IMPL_REQUEST: |
90 case EventSourceType.HOST_RESOLVER_IMPL_JOB: | 91 case EventSourceType.HOST_RESOLVER_IMPL_JOB: |
91 case EventSourceType.HOST_RESOLVER_IMPL_PROC_TASK: | 92 case EventSourceType.HOST_RESOLVER_IMPL_PROC_TASK: |
92 this.description_ = e.params.host; | 93 this.description_ = e.params.host; |
93 break; | 94 break; |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
340 this.entries_, | 341 this.entries_, |
341 SourceTracker.getInstance().getPrivacyStripping(), | 342 SourceTracker.getInstance().getPrivacyStripping(), |
342 SourceTracker.getInstance().getUseRelativeTimes() ? | 343 SourceTracker.getInstance().getUseRelativeTimes() ? |
343 timeutil.getBaseTime() : 0, | 344 timeutil.getBaseTime() : 0, |
344 Constants.clientInfo.numericDate); | 345 Constants.clientInfo.numericDate); |
345 }, | 346 }, |
346 }; | 347 }; |
347 | 348 |
348 return SourceEntry; | 349 return SourceEntry; |
349 })(); | 350 })(); |
OLD | NEW |