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

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

Issue 8474001: Add a timeline view to about:net-internals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update comments Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 * This view displays information on the proxy setup: 6 * This view displays information on the proxy setup:
7 * 7 *
8 * - Shows the current proxy settings. 8 * - Shows the current proxy settings.
9 * - Has a button to reload these settings. 9 * - Has a button to reload these settings.
10 * - Shows the log entries for the most recent INIT_PROXY_RESOLVER source 10 * - Shows the log entries for the most recent INIT_PROXY_RESOLVER source
(...skipping 19 matching lines...) Expand all
30 30
31 // Hook up the UI components. 31 // Hook up the UI components.
32 $(ProxyView.RELOAD_SETTINGS_BUTTON_ID).onclick = 32 $(ProxyView.RELOAD_SETTINGS_BUTTON_ID).onclick =
33 g_browser.sendReloadProxySettings.bind(g_browser); 33 g_browser.sendReloadProxySettings.bind(g_browser);
34 $(ProxyView.CLEAR_BAD_PROXIES_BUTTON_ID).onclick = 34 $(ProxyView.CLEAR_BAD_PROXIES_BUTTON_ID).onclick =
35 g_browser.sendClearBadProxies.bind(g_browser); 35 g_browser.sendClearBadProxies.bind(g_browser);
36 36
37 // Register to receive proxy information as it changes. 37 // Register to receive proxy information as it changes.
38 g_browser.addProxySettingsObserver(this, true); 38 g_browser.addProxySettingsObserver(this, true);
39 g_browser.addBadProxiesObserver(this, true); 39 g_browser.addBadProxiesObserver(this, true);
40 g_browser.sourceTracker.addObserver(this); 40 g_browser.sourceTracker.addSourceEntryObserver(this);
41 } 41 }
42 42
43 // ID for special HTML element in category_tabs.html 43 // ID for special HTML element in category_tabs.html
44 ProxyView.TAB_HANDLE_ID = 'tab-handle-proxy'; 44 ProxyView.TAB_HANDLE_ID = 'tab-handle-proxy';
45 45
46 // IDs for special HTML elements in proxy_view.html 46 // IDs for special HTML elements in proxy_view.html
47 ProxyView.MAIN_BOX_ID = 'proxy-view-tab-content'; 47 ProxyView.MAIN_BOX_ID = 'proxy-view-tab-content';
48 ProxyView.ORIGINAL_SETTINGS_DIV_ID = 'proxy-view-original-settings'; 48 ProxyView.ORIGINAL_SETTINGS_DIV_ID = 'proxy-view-original-settings';
49 ProxyView.EFFECTIVE_SETTINGS_DIV_ID = 'proxy-view-effective-settings'; 49 ProxyView.EFFECTIVE_SETTINGS_DIV_ID = 'proxy-view-effective-settings';
50 ProxyView.RELOAD_SETTINGS_BUTTON_ID = 'proxy-view-reload-settings'; 50 ProxyView.RELOAD_SETTINGS_BUTTON_ID = 'proxy-view-reload-settings';
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 this.clearLog_(); 162 this.clearLog_();
163 }, 163 },
164 164
165 onAllSourceEntriesDeleted: function() { 165 onAllSourceEntriesDeleted: function() {
166 this.clearLog_(); 166 this.clearLog_();
167 } 167 }
168 }; 168 };
169 169
170 return ProxyView; 170 return ProxyView;
171 })(); 171 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698