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

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

Issue 11635023: First cut at UI for saving net_logs data into a temporary file on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 EventType = null; 10 var EventType = null;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 tabs.addTab(ProxyView.TAB_HANDLE_ID, ProxyView.getInstance(), 82 tabs.addTab(ProxyView.TAB_HANDLE_ID, ProxyView.getInstance(),
83 false, true); 83 false, true);
84 tabs.addTab(EventsView.TAB_HANDLE_ID, EventsView.getInstance(), 84 tabs.addTab(EventsView.TAB_HANDLE_ID, EventsView.getInstance(),
85 false, true); 85 false, true);
86 tabs.addTab(TimelineView.TAB_HANDLE_ID, TimelineView.getInstance(), 86 tabs.addTab(TimelineView.TAB_HANDLE_ID, TimelineView.getInstance(),
87 false, true); 87 false, true);
88 tabs.addTab(DnsView.TAB_HANDLE_ID, DnsView.getInstance(), 88 tabs.addTab(DnsView.TAB_HANDLE_ID, DnsView.getInstance(),
89 false, true); 89 false, true);
90 tabs.addTab(SocketsView.TAB_HANDLE_ID, SocketsView.getInstance(), 90 tabs.addTab(SocketsView.TAB_HANDLE_ID, SocketsView.getInstance(),
91 false, true); 91 false, true);
92 tabs.addTab(MobileView.TAB_HANDLE_ID, MobileView.getInstance(),
93 false, cr.isMobile);
92 tabs.addTab(SpdyView.TAB_HANDLE_ID, SpdyView.getInstance(), false, true); 94 tabs.addTab(SpdyView.TAB_HANDLE_ID, SpdyView.getInstance(), false, true);
93 tabs.addTab(HttpPipelineView.TAB_HANDLE_ID, HttpPipelineView.getInstance(), 95 tabs.addTab(HttpPipelineView.TAB_HANDLE_ID, HttpPipelineView.getInstance(),
94 false, true); 96 false, true);
95 tabs.addTab(HttpCacheView.TAB_HANDLE_ID, HttpCacheView.getInstance(), 97 tabs.addTab(HttpCacheView.TAB_HANDLE_ID, HttpCacheView.getInstance(),
96 false, true); 98 false, true);
97 tabs.addTab(ServiceProvidersView.TAB_HANDLE_ID, 99 tabs.addTab(ServiceProvidersView.TAB_HANDLE_ID,
98 ServiceProvidersView.getInstance(), false, cr.isWindows); 100 ServiceProvidersView.getInstance(), false, cr.isWindows);
99 tabs.addTab(TestView.TAB_HANDLE_ID, TestView.getInstance(), false, true); 101 tabs.addTab(TestView.TAB_HANDLE_ID, TestView.getInstance(), false, true);
100 tabs.addTab(HSTSView.TAB_HANDLE_ID, HSTSView.getInstance(), false, true); 102 tabs.addTab(HSTSView.TAB_HANDLE_ID, HSTSView.getInstance(), false, true);
101 tabs.addTab(LogsView.TAB_HANDLE_ID, LogsView.getInstance(), 103 tabs.addTab(LogsView.TAB_HANDLE_ID, LogsView.getInstance(),
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 * Returns a string representation of |family|. 306 * Returns a string representation of |family|.
305 * @param {number} family An AddressFamily 307 * @param {number} family An AddressFamily
306 * @return {string} A representation of the given family. 308 * @return {string} A representation of the given family.
307 */ 309 */
308 function addressFamilyToString(family) { 310 function addressFamilyToString(family) {
309 var str = getKeyWithValue(AddressFamily, family); 311 var str = getKeyWithValue(AddressFamily, family);
310 // All the address family start with ADDRESS_FAMILY_*. 312 // All the address family start with ADDRESS_FAMILY_*.
311 // Strip that prefix since it is redundant and only clutters the output. 313 // Strip that prefix since it is redundant and only clutters the output.
312 return str.replace(/^ADDRESS_FAMILY_/, ''); 314 return str.replace(/^ADDRESS_FAMILY_/, '');
313 } 315 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698