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

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

Issue 423813002: Sdch view for net-internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
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 EventType = null; 10 var EventType = null;
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 addTab(QuicView); 194 addTab(QuicView);
195 addTab(HttpCacheView); 195 addTab(HttpCacheView);
196 addTab(ModulesView); 196 addTab(ModulesView);
197 addTab(TestView); 197 addTab(TestView);
198 addTab(CrosLogVisualizerView); 198 addTab(CrosLogVisualizerView);
199 addTab(HSTSView); 199 addTab(HSTSView);
200 addTab(LogsView); 200 addTab(LogsView);
201 addTab(BandwidthView); 201 addTab(BandwidthView);
202 addTab(PrerenderView); 202 addTab(PrerenderView);
203 addTab(CrosView); 203 addTab(CrosView);
204 addTab(SdchView);
Randy Smith (Not in Mondays) 2014/07/28 19:52:42 (Not sure this is the right place in the code for
204 205
205 this.tabSwitcher_.showMenuItem(LogsView.TAB_ID, cr.isChromeOS); 206 this.tabSwitcher_.showMenuItem(LogsView.TAB_ID, cr.isChromeOS);
206 this.tabSwitcher_.showMenuItem(CrosView.TAB_ID, cr.isChromeOS); 207 this.tabSwitcher_.showMenuItem(CrosView.TAB_ID, cr.isChromeOS);
207 this.tabSwitcher_.showMenuItem(CrosLogVisualizerView.TAB_ID, 208 this.tabSwitcher_.showMenuItem(CrosLogVisualizerView.TAB_ID,
208 cr.isChromeOS); 209 cr.isChromeOS);
209 }, 210 },
210 211
211 /** 212 /**
212 * This function is called by the tab switcher when the current tab has been 213 * This function is called by the tab switcher when the current tab has been
213 * changed. It will update the current URL to reflect the new active tab, 214 * changed. It will update the current URL to reflect the new active tab,
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 * Returns a string representation of |family|. 383 * Returns a string representation of |family|.
383 * @param {number} family An AddressFamily 384 * @param {number} family An AddressFamily
384 * @return {string} A representation of the given family. 385 * @return {string} A representation of the given family.
385 */ 386 */
386 function addressFamilyToString(family) { 387 function addressFamilyToString(family) {
387 var str = getKeyWithValue(AddressFamily, family); 388 var str = getKeyWithValue(AddressFamily, family);
388 // All the address family start with ADDRESS_FAMILY_*. 389 // All the address family start with ADDRESS_FAMILY_*.
389 // Strip that prefix since it is redundant and only clutters the output. 390 // Strip that prefix since it is redundant and only clutters the output.
390 return str.replace(/^ADDRESS_FAMILY_/, ''); 391 return str.replace(/^ADDRESS_FAMILY_/, '');
391 } 392 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698