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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 this.description_ = e.params.host; | 93 this.description_ = e.params.host; |
94 break; | 94 break; |
95 case EventSourceType.DISK_CACHE_ENTRY: | 95 case EventSourceType.DISK_CACHE_ENTRY: |
96 case EventSourceType.MEMORY_CACHE_ENTRY: | 96 case EventSourceType.MEMORY_CACHE_ENTRY: |
97 this.description_ = e.params.key; | 97 this.description_ = e.params.key; |
98 break; | 98 break; |
99 case EventSourceType.QUIC_SESSION: | 99 case EventSourceType.QUIC_SESSION: |
100 if (e.params.host != undefined) | 100 if (e.params.host != undefined) |
101 this.description_ = e.params.host; | 101 this.description_ = e.params.host; |
102 break; | 102 break; |
103 case EventSourceType.SPDY_SESSION: | 103 case EventSourceType.HTTP2_SESSION: |
104 if (e.params.host) | 104 if (e.params.host) |
105 this.description_ = e.params.host + ' (' + e.params.proxy + ')'; | 105 this.description_ = e.params.host + ' (' + e.params.proxy + ')'; |
106 break; | 106 break; |
107 case EventSourceType.HTTP_PIPELINED_CONNECTION: | 107 case EventSourceType.HTTP_PIPELINED_CONNECTION: |
108 if (e.params.host_and_port) | 108 if (e.params.host_and_port) |
109 this.description_ = e.params.host_and_port; | 109 this.description_ = e.params.host_and_port; |
110 break; | 110 break; |
111 case EventSourceType.SOCKET: | 111 case EventSourceType.SOCKET: |
112 case EventSourceType.PROXY_CLIENT_SOCKET: | 112 case EventSourceType.PROXY_CLIENT_SOCKET: |
113 // Use description of parent source, if any. | 113 // Use description of parent source, if any. |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 this.entries_, | 341 this.entries_, |
342 SourceTracker.getInstance().getPrivacyStripping(), | 342 SourceTracker.getInstance().getPrivacyStripping(), |
343 SourceTracker.getInstance().getUseRelativeTimes() ? | 343 SourceTracker.getInstance().getUseRelativeTimes() ? |
344 timeutil.getBaseTime() : 0, | 344 timeutil.getBaseTime() : 0, |
345 Constants.clientInfo.numericDate); | 345 Constants.clientInfo.numericDate); |
346 }, | 346 }, |
347 }; | 347 }; |
348 | 348 |
349 return SourceEntry; | 349 return SourceEntry; |
350 })(); | 350 })(); |
OLD | NEW |