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

Side by Side Diff: chrome/browser/resources/net_internals/main.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 * Dictionary of constants (initialized by browser). 6 * Dictionary of constants (initialized by browser).
7 */ 7 */
8 var LogEventType = null; 8 var LogEventType = null;
9 var LogEventPhase = null; 9 var LogEventPhase = null;
10 var ClientInfo = null; 10 var ClientInfo = null;
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 }; 389 };
390 390
391 BrowserBridge.prototype.setLogLevel = function(logLevel) { 391 BrowserBridge.prototype.setLogLevel = function(logLevel) {
392 chrome.send('setLogLevel', ['' + logLevel]); 392 chrome.send('setLogLevel', ['' + logLevel]);
393 }; 393 };
394 394
395 BrowserBridge.prototype.enableHttpThrottling = function(enable) { 395 BrowserBridge.prototype.enableHttpThrottling = function(enable) {
396 chrome.send('enableHttpThrottling', [enable]); 396 chrome.send('enableHttpThrottling', [enable]);
397 }; 397 };
398 398
399 BrowserBridge.prototype.disableThrottlingExperiments = function() {
400 chrome.send('disableThrottlingExperiments');
401 }
402
399 BrowserBridge.prototype.loadLogFile = function() { 403 BrowserBridge.prototype.loadLogFile = function() {
400 chrome.send('loadLogFile'); 404 chrome.send('loadLogFile');
401 }; 405 };
402 406
403 BrowserBridge.prototype.refreshSystemLogs = function() { 407 BrowserBridge.prototype.refreshSystemLogs = function() {
404 chrome.send('refreshSystemLogs'); 408 chrome.send('refreshSystemLogs');
405 }; 409 };
406 410
407 BrowserBridge.prototype.getSystemLog = function(log_key, cellId) { 411 BrowserBridge.prototype.getSystemLog = function(log_key, cellId) {
408 chrome.send('getSystemLog', [log_key, cellId]); 412 chrome.send('getSystemLog', [log_key, cellId]);
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 return true; 1081 return true;
1078 }; 1082 };
1079 1083
1080 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) { 1084 UpdateAllObserver.prototype.onDataReceived_ = function(helper, name, data) {
1081 helper.removeObserver(this); 1085 helper.removeObserver(this);
1082 --this.observingCount_; 1086 --this.observingCount_;
1083 this.updatedData_[name] = data; 1087 this.updatedData_[name] = data;
1084 if (this.observingCount_ == 0) 1088 if (this.observingCount_ == 0)
1085 this.callback_(this.updatedData_); 1089 this.callback_(this.updatedData_);
1086 }; 1090 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698