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

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

Issue 8965025: Refactoring of job dispatch in HostResolverImpl in preparation for DnsClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes from try bots. Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 case LogSourceType.URL_REQUEST: 81 case LogSourceType.URL_REQUEST:
82 case LogSourceType.SOCKET_STREAM: 82 case LogSourceType.SOCKET_STREAM:
83 case LogSourceType.HTTP_STREAM_JOB: 83 case LogSourceType.HTTP_STREAM_JOB:
84 this.description_ = e.params.url; 84 this.description_ = e.params.url;
85 break; 85 break;
86 case LogSourceType.CONNECT_JOB: 86 case LogSourceType.CONNECT_JOB:
87 this.description_ = e.params.group_name; 87 this.description_ = e.params.group_name;
88 break; 88 break;
89 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST: 89 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST:
90 case LogSourceType.HOST_RESOLVER_IMPL_JOB: 90 case LogSourceType.HOST_RESOLVER_IMPL_JOB:
91 case LogSourceType.HOST_RESOLVER_IMPL_PROC_TASK:
91 this.description_ = e.params.host; 92 this.description_ = e.params.host;
92 break; 93 break;
93 case LogSourceType.DISK_CACHE_ENTRY: 94 case LogSourceType.DISK_CACHE_ENTRY:
94 case LogSourceType.MEMORY_CACHE_ENTRY: 95 case LogSourceType.MEMORY_CACHE_ENTRY:
95 this.description_ = e.params.key; 96 this.description_ = e.params.key;
96 break; 97 break;
97 case LogSourceType.SPDY_SESSION: 98 case LogSourceType.SPDY_SESSION:
98 if (e.params.host) 99 if (e.params.host)
99 this.description_ = e.params.host + ' (' + e.params.proxy + ')'; 100 this.description_ = e.params.host + ' (' + e.params.proxy + ')';
100 break; 101 break;
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 * Prints descriptive text about |entries_| to a new node added to the end 226 * Prints descriptive text about |entries_| to a new node added to the end
226 * of |parent|. 227 * of |parent|.
227 */ 228 */
228 printAsText: function(parent) { 229 printAsText: function(parent) {
229 printLogEntriesAsText(this.entries_, parent); 230 printLogEntriesAsText(this.entries_, parent);
230 } 231 }
231 }; 232 };
232 233
233 return SourceEntry; 234 return SourceEntry;
234 })(); 235 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698