Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2303)

Side by Side Diff: chrome/browser/resources/net_internals/source_entry.js

Issue 934823005: Rename SPDY netlog strings to HTTP2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename SOURCE_SPDY_SESSION. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/spdy_view.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 })();
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/net_internals/spdy_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698