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

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

Issue 7531005: Rename the net_internals file names to include hyphens. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add some missing files Created 9 years, 5 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 94551)
+++ chrome/browser/resources/net_internals/httpcacheview.js (working copy)
@@ -1,41 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-/**
- * This view displays information on the HTTP cache.
- * @constructor
- */
-function HttpCacheView() {
- const mainBoxId = 'httpCacheTabContent';
- const statsDivId = 'httpCacheStats';
-
- DivView.call(this, mainBoxId);
-
- this.statsDiv_ = $(statsDivId);
-
- // Register to receive http cache info.
- g_browser.addHttpCacheInfoObserver(this);
-}
-
-inherits(HttpCacheView, DivView);
-
-HttpCacheView.prototype.onLoadLogFinish = function(data) {
- return this.onHttpCacheInfoChanged(data.httpCacheInfo);
-};
-
-HttpCacheView.prototype.onHttpCacheInfoChanged = function(info) {
- this.statsDiv_.innerHTML = '';
-
- if (!info)
- return false;
-
- // Print the statistics.
- var statsUl = addNode(this.statsDiv_, 'ul');
- for (var statName in info.stats) {
- var li = addNode(statsUl, 'li');
- addTextNode(li, statName + ': ' + info.stats[statName]);
- }
- return true;
-};
-

Powered by Google App Engine
This is Rietveld 408576698