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

Unified Diff: chrome/browser/resources/net_internals/httpcacheview.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
Index: chrome/browser/resources/net_internals/httpcacheview.js
===================================================================
--- chrome/browser/resources/net_internals/httpcacheview.js (revision 47239)
+++ chrome/browser/resources/net_internals/httpcacheview.js (working copy)
@@ -6,15 +6,10 @@
* This view displays information on the HTTP cache.
* @constructor
*/
-function HttpCacheView(mainBoxId, reloadButtonId, statsDivId,
- entryListingDivId) {
+function HttpCacheView(mainBoxId, statsDivId) {
DivView.call(this, mainBoxId);
- var reloadButton = document.getElementById(reloadButtonId);
- reloadButton.onclick = this.reloadListing_.bind(this);
-
this.statsDiv_ = document.getElementById(statsDivId);
- this.entryListingDiv_ = document.getElementById(entryListingDivId);
// Register to receive http cache info.
g_browser.addHttpCacheInfoObserver(this);
@@ -22,8 +17,7 @@
inherits(HttpCacheView, DivView);
-HttpCacheView.prototype.onHttpCacheInfoReceived = function(info) {
- this.entryListingDiv_.innerHTML = '';
+HttpCacheView.prototype.onHttpCacheInfoChanged = function(info) {
this.statsDiv_.innerHTML = '';
// Print the statistics.
@@ -32,21 +26,5 @@
var li = addNode(statsUl, 'li');
addTextNode(li, statName + ': ' + info.stats[statName]);
}
-
- // Print the entries.
- var keysOl = addNode(this.entryListingDiv_, 'ol');
- for (var i = 0; i < info.keys.length; ++i) {
- var key = info.keys[i];
- var li = addNode(keysOl, 'li');
- var a = addNode(li, 'a');
- addTextNode(a, key);
- a.href = 'chrome://view-http-cache/' + key;
- a.target = '_blank';
- }
};
-HttpCacheView.prototype.reloadListing_ = function() {
- this.entryListingDiv_.innerHTML = 'Loading...';
- this.statsDiv_.innerHTML = 'Loading...';
- g_browser.sendGetHttpCacheInfo();
-};
« no previous file with comments | « chrome/browser/resources/net_internals/dataview.js ('k') | chrome/browser/resources/net_internals/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698