OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Populated by constants from the browser. Used only by this file. | 5 // Populated by constants from the browser. Used only by this file. |
6 var NetInfoSources = null; | 6 var NetInfoSources = null; |
7 | 7 |
8 /** | 8 /** |
9 * This class provides a "bridge" for communicating between the javascript and | 9 * This class provides a "bridge" for communicating between the javascript and |
10 * the browser. | 10 * the browser. |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 }, | 208 }, |
209 | 209 |
210 sendGetDataReductionProxyInfo: function() { | 210 sendGetDataReductionProxyInfo: function() { |
211 this.send('getDataReductionProxyInfo'); | 211 this.send('getDataReductionProxyInfo'); |
212 }, | 212 }, |
213 | 213 |
214 enableIPv6: function() { | 214 enableIPv6: function() { |
215 this.send('enableIPv6'); | 215 this.send('enableIPv6'); |
216 }, | 216 }, |
217 | 217 |
218 setLogLevel: function(logLevel) { | 218 setCaptureMode: function(captureMode) { |
219 this.send('setLogLevel', ['' + logLevel]); | 219 this.send('setCaptureMode', ['' + captureMode]); |
220 }, | 220 }, |
221 | 221 |
222 importONCFile: function(fileContent, passcode) { | 222 importONCFile: function(fileContent, passcode) { |
223 this.send('importONCFile', [fileContent, passcode]); | 223 this.send('importONCFile', [fileContent, passcode]); |
224 }, | 224 }, |
225 | 225 |
226 storeDebugLogs: function() { | 226 storeDebugLogs: function() { |
227 this.send('storeDebugLogs'); | 227 this.send('storeDebugLogs'); |
228 }, | 228 }, |
229 | 229 |
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 helper.removeObserver(this); | 796 helper.removeObserver(this); |
797 --this.observingCount_; | 797 --this.observingCount_; |
798 this.updatedData_[name] = data; | 798 this.updatedData_[name] = data; |
799 if (this.observingCount_ == 0) | 799 if (this.observingCount_ == 0) |
800 this.callback_(this.updatedData_); | 800 this.callback_(this.updatedData_); |
801 } | 801 } |
802 }; | 802 }; |
803 | 803 |
804 return BrowserBridge; | 804 return BrowserBridge; |
805 })(); | 805 })(); |
OLD | NEW |