OLD | NEW |
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 Loading... |
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 Loading... |
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 }; |
OLD | NEW |