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

Side by Side Diff: chrome/browser/resources/net_internals/httpthrottlingview.js

Issue 7027040: Implement A/B experiment for anti-DDoS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * This view displays information related to HTTP throttling. 6 * This view displays information related to HTTP throttling.
7 * @constructor 7 * @constructor
8 */ 8 */
9 function HttpThrottlingView(mainBoxId, enableCheckboxId) { 9 function HttpThrottlingView(mainBoxId, enableCheckboxId) {
10 DivView.call(this, mainBoxId); 10 DivView.call(this, mainBoxId);
(...skipping 13 matching lines...) Expand all
24 HttpThrottlingView.prototype.onHttpThrottlingEnabledPrefChanged = function( 24 HttpThrottlingView.prototype.onHttpThrottlingEnabledPrefChanged = function(
25 enabled) { 25 enabled) {
26 this.enableCheckbox_.checked = enabled; 26 this.enableCheckbox_.checked = enabled;
27 }; 27 };
28 28
29 /** 29 /**
30 * Handler for the onclick event of the checkbox. 30 * Handler for the onclick event of the checkbox.
31 */ 31 */
32 HttpThrottlingView.prototype.onEnableCheckboxClicked_ = function() { 32 HttpThrottlingView.prototype.onEnableCheckboxClicked_ = function() {
33 g_browser.enableHttpThrottling(this.enableCheckbox_.checked); 33 g_browser.enableHttpThrottling(this.enableCheckbox_.checked);
34 }; 34 g_browser.disableThrottlingExperiments();
35 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698