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

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

Issue 10185003: Remove net-internals page for throttling, introduce flag for extension devs instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix JavaScript presubmit. Created 8 years, 8 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/http_throttling_view.js
diff --git a/chrome/browser/resources/net_internals/http_throttling_view.js b/chrome/browser/resources/net_internals/http_throttling_view.js
deleted file mode 100644
index 7575b6817edb257450505168d2996e4be92e9077..0000000000000000000000000000000000000000
--- a/chrome/browser/resources/net_internals/http_throttling_view.js
+++ /dev/null
@@ -1,60 +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.
- */
-var HttpThrottlingView = (function() {
- 'use strict';
-
- // We inherit from DivView.
- var superClass = DivView;
-
- /**
- * @constructor
- */
- function HttpThrottlingView() {
- assertFirstConstructorCall(HttpThrottlingView);
-
- // Call superclass's constructor.
- superClass.call(this, HttpThrottlingView.MAIN_BOX_ID);
-
- this.enableCheckbox_ = $(HttpThrottlingView.ENABLE_CHECKBOX_ID);
- this.enableCheckbox_.onclick = this.onEnableCheckboxClicked_.bind(this);
-
- g_browser.addHttpThrottlingObserver(this);
- }
-
- // ID for special HTML element in category_tabs.html
- HttpThrottlingView.TAB_HANDLE_ID = 'tab-handle-http-throttling';
-
- // IDs for special HTML elements in http_throttling_view.html
- HttpThrottlingView.MAIN_BOX_ID = 'http-throttling-view-tab-content';
- HttpThrottlingView.ENABLE_CHECKBOX_ID =
- 'http-throttling-view-enable-checkbox';
-
- cr.addSingletonGetter(HttpThrottlingView);
-
- HttpThrottlingView.prototype = {
- // Inherit the superclass's methods.
- __proto__: superClass.prototype,
-
- /**
- * Gets informed that HTTP throttling has been enabled/disabled.
- * @param {boolean} enabled HTTP throttling has been enabled.
- */
- onHttpThrottlingEnabledPrefChanged: function(enabled) {
- this.enableCheckbox_.checked = enabled;
- },
-
- /**
- * Handler for the onclick event of the checkbox.
- */
- onEnableCheckboxClicked_: function() {
- g_browser.enableHttpThrottling(this.enableCheckbox_.checked);
- }
- };
-
- return HttpThrottlingView;
-})();
« no previous file with comments | « chrome/browser/resources/net_internals/http_throttling_view.html ('k') | chrome/browser/resources/net_internals/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698