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

Unified Diff: chrome/browser/resources/net_internals/httpthrottlingview.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/httpthrottlingview.js
===================================================================
--- chrome/browser/resources/net_internals/httpthrottlingview.js (revision 94551)
+++ chrome/browser/resources/net_internals/httpthrottlingview.js (working copy)
@@ -1,37 +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 related to HTTP throttling.
- * @constructor
- */
-function HttpThrottlingView() {
- const mainBoxId = 'httpThrottlingTabContent';
- const enableCheckboxId = 'enableHttpThrottlingCheckbox';
-
- DivView.call(this, mainBoxId);
-
- this.enableCheckbox_ = $(enableCheckboxId);
- this.enableCheckbox_.onclick = this.onEnableCheckboxClicked_.bind(this);
-
- g_browser.addHttpThrottlingObserver(this);
-}
-
-inherits(HttpThrottlingView, DivView);
-
-/**
- * Gets informed that HTTP throttling has been enabled/disabled.
- * @param {boolean} enabled HTTP throttling has been enabled.
- */
-HttpThrottlingView.prototype.onHttpThrottlingEnabledPrefChanged = function(
- enabled) {
- this.enableCheckbox_.checked = enabled;
-};
-
-/**
- * Handler for the onclick event of the checkbox.
- */
-HttpThrottlingView.prototype.onEnableCheckboxClicked_ = function() {
- g_browser.enableHttpThrottling(this.enableCheckbox_.checked);
-};
« no previous file with comments | « chrome/browser/resources/net_internals/httpcacheview.js ('k') | chrome/browser/resources/net_internals/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698