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/sourceentry.js

Issue 6592027: Update NetLog in preparation for late binding of HttpStream jobs to requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address nits. Created 9 years, 9 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
« no previous file with comments | « chrome/browser/net/passive_log_collector_unittest.cc ('k') | net/base/host_resolver_impl.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 /** 5 /**
6 * Each row in the filtered items list is backed by a SourceEntry. This 6 * Each row in the filtered items list is backed by a SourceEntry. This
7 * instance contains all of the data pertaining to that row, and notifies 7 * instance contains all of the data pertaining to that row, and notifies
8 * its parent view (the EventsView) whenever its data changes. 8 * its parent view (the EventsView) whenever its data changes.
9 * 9 *
10 * @constructor 10 * @constructor
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 return getKeyWithValue(LogEventType, e.type); 216 return getKeyWithValue(LogEventType, e.type);
217 } 217 }
218 218
219 if (e.params == undefined) 219 if (e.params == undefined)
220 return ''; 220 return '';
221 221
222 var description = ''; 222 var description = '';
223 switch (e.source.type) { 223 switch (e.source.type) {
224 case LogSourceType.URL_REQUEST: 224 case LogSourceType.URL_REQUEST:
225 case LogSourceType.SOCKET_STREAM: 225 case LogSourceType.SOCKET_STREAM:
226 case LogSourceType.HTTP_STREAM_JOB:
226 description = e.params.url; 227 description = e.params.url;
227 break; 228 break;
228 case LogSourceType.CONNECT_JOB: 229 case LogSourceType.CONNECT_JOB:
229 description = e.params.group_name; 230 description = e.params.group_name;
230 break; 231 break;
231 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST: 232 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST:
232 case LogSourceType.HOST_RESOLVER_IMPL_JOB: 233 case LogSourceType.HOST_RESOLVER_IMPL_JOB:
233 description = e.params.host; 234 description = e.params.host;
234 break; 235 break;
235 case LogSourceType.DISK_CACHE_ENTRY: 236 case LogSourceType.DISK_CACHE_ENTRY:
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); 372 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling);
372 } 373 }
373 }; 374 };
374 375
375 SourceEntry.prototype.remove = function() { 376 SourceEntry.prototype.remove = function() {
376 this.setSelected(false); 377 this.setSelected(false);
377 this.setIsMatchedByFilter(false); 378 this.setIsMatchedByFilter(false);
378 this.row_.parentNode.removeChild(this.row_); 379 this.row_.parentNode.removeChild(this.row_);
379 }; 380 };
380 381
OLDNEW
« no previous file with comments | « chrome/browser/net/passive_log_collector_unittest.cc ('k') | net/base/host_resolver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698