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

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

Issue 4067002: First pass at adding http/backend cache to NetLog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Lint fixes Created 9 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) 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 case LogSourceType.SOCKET_STREAM: 225 case LogSourceType.SOCKET_STREAM:
226 description = e.params.url; 226 description = e.params.url;
227 break; 227 break;
228 case LogSourceType.CONNECT_JOB: 228 case LogSourceType.CONNECT_JOB:
229 description = e.params.group_name; 229 description = e.params.group_name;
230 break; 230 break;
231 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST: 231 case LogSourceType.HOST_RESOLVER_IMPL_REQUEST:
232 case LogSourceType.HOST_RESOLVER_IMPL_JOB: 232 case LogSourceType.HOST_RESOLVER_IMPL_JOB:
233 description = e.params.host; 233 description = e.params.host;
234 break; 234 break;
235 case LogSourceType.DISK_CACHE_ENTRY:
236 description = e.params.key;
237 break;
235 case LogSourceType.SPDY_SESSION: 238 case LogSourceType.SPDY_SESSION:
236 if (e.params.host) 239 if (e.params.host)
237 description = e.params.host + ' (' + e.params.proxy + ')'; 240 description = e.params.host + ' (' + e.params.proxy + ')';
238 break; 241 break;
239 case LogSourceType.SOCKET: 242 case LogSourceType.SOCKET:
240 if (e.params.source_dependency != undefined) { 243 if (e.params.source_dependency != undefined) {
241 var connectJobSourceEntry = 244 var connectJobSourceEntry =
242 this.parentView_.getSourceEntry(e.params.source_dependency.id); 245 this.parentView_.getSourceEntry(e.params.source_dependency.id);
243 if (connectJobSourceEntry) 246 if (connectJobSourceEntry)
244 description = connectJobSourceEntry.getDescription(); 247 description = connectJobSourceEntry.getDescription();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling); 371 this.row_.parentNode.insertBefore(this.row_, entry.row_.nextSibling);
369 } 372 }
370 }; 373 };
371 374
372 SourceEntry.prototype.remove = function() { 375 SourceEntry.prototype.remove = function() {
373 this.setSelected(false); 376 this.setSelected(false);
374 this.setIsMatchedByFilter(false); 377 this.setIsMatchedByFilter(false);
375 this.row_.parentNode.removeChild(this.row_); 378 this.row_.parentNode.removeChild(this.row_);
376 }; 379 };
377 380
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/main.css ('k') | chrome/service/net/service_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698