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

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

Issue 10185003: Remove net-internals page for throttling, introduce flag for extension devs instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix JavaScript presubmit. Created 8 years, 8 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) 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 /** 5 /**
6 * Dictionary of constants (Initialized soon after loading by data from browser, 6 * Dictionary of constants (Initialized soon after loading by data from browser,
7 * updated on load log). The *Types dictionaries map strings to numeric IDs, 7 * updated on load log). The *Types dictionaries map strings to numeric IDs,
8 * while the *TypeNames are the other way around. 8 * while the *TypeNames are the other way around.
9 */ 9 */
10 var LogEventType = null; 10 var LogEventType = null;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 false, true); 83 false, true);
84 tabs.addTab(DnsView.TAB_HANDLE_ID, DnsView.getInstance(), 84 tabs.addTab(DnsView.TAB_HANDLE_ID, DnsView.getInstance(),
85 false, true); 85 false, true);
86 tabs.addTab(SocketsView.TAB_HANDLE_ID, SocketsView.getInstance(), 86 tabs.addTab(SocketsView.TAB_HANDLE_ID, SocketsView.getInstance(),
87 false, true); 87 false, true);
88 tabs.addTab(SpdyView.TAB_HANDLE_ID, SpdyView.getInstance(), false, true); 88 tabs.addTab(SpdyView.TAB_HANDLE_ID, SpdyView.getInstance(), false, true);
89 tabs.addTab(HttpPipelineView.TAB_HANDLE_ID, HttpPipelineView.getInstance(), 89 tabs.addTab(HttpPipelineView.TAB_HANDLE_ID, HttpPipelineView.getInstance(),
90 false, true); 90 false, true);
91 tabs.addTab(HttpCacheView.TAB_HANDLE_ID, HttpCacheView.getInstance(), 91 tabs.addTab(HttpCacheView.TAB_HANDLE_ID, HttpCacheView.getInstance(),
92 false, true); 92 false, true);
93 tabs.addTab(HttpThrottlingView.TAB_HANDLE_ID,
94 HttpThrottlingView.getInstance(), false, true);
95 tabs.addTab(ServiceProvidersView.TAB_HANDLE_ID, 93 tabs.addTab(ServiceProvidersView.TAB_HANDLE_ID,
96 ServiceProvidersView.getInstance(), false, cr.isWindows); 94 ServiceProvidersView.getInstance(), false, cr.isWindows);
97 tabs.addTab(TestView.TAB_HANDLE_ID, TestView.getInstance(), false, true); 95 tabs.addTab(TestView.TAB_HANDLE_ID, TestView.getInstance(), false, true);
98 tabs.addTab(HSTSView.TAB_HANDLE_ID, HSTSView.getInstance(), false, true); 96 tabs.addTab(HSTSView.TAB_HANDLE_ID, HSTSView.getInstance(), false, true);
99 tabs.addTab(LogsView.TAB_HANDLE_ID, LogsView.getInstance(), 97 tabs.addTab(LogsView.TAB_HANDLE_ID, LogsView.getInstance(),
100 false, cr.isChromeOS); 98 false, cr.isChromeOS);
101 tabs.addTab(PrerenderView.TAB_HANDLE_ID, PrerenderView.getInstance(), 99 tabs.addTab(PrerenderView.TAB_HANDLE_ID, PrerenderView.getInstance(),
102 false, true); 100 false, true);
103 tabs.addTab(CrosView.TAB_HANDLE_ID, CrosView.getInstance(), 101 tabs.addTab(CrosView.TAB_HANDLE_ID, CrosView.getInstance(),
104 false, cr.isChromeOS); 102 false, cr.isChromeOS);
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 * Returns a string representation of |family|. 293 * Returns a string representation of |family|.
296 * @param {number} family An AddressFamily 294 * @param {number} family An AddressFamily
297 * @return {string} A representation of the given family. 295 * @return {string} A representation of the given family.
298 */ 296 */
299 function addressFamilyToString(family) { 297 function addressFamilyToString(family) {
300 var str = getKeyWithValue(AddressFamily, family); 298 var str = getKeyWithValue(AddressFamily, family);
301 // All the address family start with ADDRESS_FAMILY_*. 299 // All the address family start with ADDRESS_FAMILY_*.
302 // Strip that prefix since it is redundant and only clutters the output. 300 // Strip that prefix since it is redundant and only clutters the output.
303 return str.replace(/^ADDRESS_FAMILY_/, ''); 301 return str.replace(/^ADDRESS_FAMILY_/, '');
304 } 302 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/net_internals/index.js ('k') | chrome/browser/ui/webui/net_internals/net_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698