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

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

Issue 1041763002: Remove stale-while-revalidate experimental implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 years, 6 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 | « chrome/browser/io_thread.cc ('k') | net/base/load_flags_list.h » ('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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 if (e.params == undefined) { 76 if (e.params == undefined) {
77 return; 77 return;
78 } 78 }
79 79
80 switch (e.source.type) { 80 switch (e.source.type) {
81 case EventSourceType.URL_REQUEST: 81 case EventSourceType.URL_REQUEST:
82 // TODO(ricea): Remove SOCKET_STREAM after M41 is released. 82 // TODO(ricea): Remove SOCKET_STREAM after M41 is released.
83 case EventSourceType.SOCKET_STREAM: 83 case EventSourceType.SOCKET_STREAM:
84 case EventSourceType.HTTP_STREAM_JOB: 84 case EventSourceType.HTTP_STREAM_JOB:
85 case EventSourceType.ASYNC_REVALIDATION:
86 this.description_ = e.params.url; 85 this.description_ = e.params.url;
87 break; 86 break;
88 case EventSourceType.CONNECT_JOB: 87 case EventSourceType.CONNECT_JOB:
89 this.description_ = e.params.group_name; 88 this.description_ = e.params.group_name;
90 break; 89 break;
91 case EventSourceType.HOST_RESOLVER_IMPL_JOB: 90 case EventSourceType.HOST_RESOLVER_IMPL_JOB:
92 case EventSourceType.HOST_RESOLVER_IMPL_PROC_TASK: 91 case EventSourceType.HOST_RESOLVER_IMPL_PROC_TASK:
93 this.description_ = e.params.host; 92 this.description_ = e.params.host;
94 break; 93 break;
95 case EventSourceType.DISK_CACHE_ENTRY: 94 case EventSourceType.DISK_CACHE_ENTRY:
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 this.entries_, 340 this.entries_,
342 SourceTracker.getInstance().getPrivacyStripping(), 341 SourceTracker.getInstance().getPrivacyStripping(),
343 SourceTracker.getInstance().getUseRelativeTimes() ? 342 SourceTracker.getInstance().getUseRelativeTimes() ?
344 timeutil.getBaseTime() : 0, 343 timeutil.getBaseTime() : 0,
345 Constants.clientInfo.numericDate); 344 Constants.clientInfo.numericDate);
346 }, 345 },
347 }; 346 };
348 347
349 return SourceEntry; 348 return SourceEntry;
350 })(); 349 })();
OLDNEW
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | net/base/load_flags_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698