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

Unified Diff: chrome/browser/resources/net_internals/main.js

Issue 2085005: Removed the "Reload" button from the HTTP cache tab of the net-internals page... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/net_internals/index.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/main.js
===================================================================
--- chrome/browser/resources/net_internals/main.js (revision 47239)
+++ chrome/browser/resources/net_internals/main.js (working copy)
@@ -68,9 +68,7 @@
"connectionTestsForm", "testSummary");
var httpCacheView = new HttpCacheView("httpCacheTabContent",
- "reloadHttpCacheListing",
- "httpCacheStats",
- "httpCacheListing");
+ "httpCacheStats");
// Create a view which lets you tab between the different sub-views.
var categoryTabSwitcher =
@@ -126,9 +124,9 @@
// List of observers for various bits of browser state.
this.logObservers_ = [];
this.connectionTestsObservers_ = [];
- this.httpCacheInfoObservers_ = [];
this.proxySettings_ = new PollableDataHelper('onProxySettingsChanged');
this.badProxies_ = new PollableDataHelper('onBadProxiesChanged');
+ this.httpCacheInfo_ = new PollableDataHelper('onHttpCacheInfoChanged');
this.hostResolverCache_ =
new PollableDataHelper('onHostResolverCacheChanged');
@@ -272,8 +270,7 @@
};
BrowserBridge.prototype.receivedHttpCacheInfo = function(info) {
- for (var i = 0; i < this.httpCacheInfoObservers_.length; ++i)
- this.httpCacheInfoObservers_[i].onHttpCacheInfoReceived(info);
+ this.httpCacheInfo_.update(info);
};
//------------------------------------------------------------------------------
@@ -343,10 +340,10 @@
* Adds a listener for the http cache info results.
* The observer will be called back with:
*
- * observer.onHttpCacheInfoReceived(info);
+ * observer.onHttpCacheInfoChanged(info);
*/
BrowserBridge.prototype.addHttpCacheInfoObserver = function(observer) {
- this.httpCacheInfoObservers_.push(observer);
+ this.httpCacheInfo_.addObserver(observer);
};
/**
@@ -388,6 +385,7 @@
this.sendGetProxySettings();
this.sendGetBadProxies();
this.sendGetHostResolverCache();
+ this.sendGetHttpCacheInfo();
};
/**
« no previous file with comments | « chrome/browser/resources/net_internals/index.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698