| 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 /** | 5 /** |
| 6 * This class provides a "bridge" for communicating between the javascript and | 6 * This class provides a "bridge" for communicating between the javascript and |
| 7 * the browser. | 7 * the browser. |
| 8 */ | 8 */ |
| 9 var BrowserBridge = (function() { | 9 var BrowserBridge = (function() { |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 sendGetBadProxies: function() { | 155 sendGetBadProxies: function() { |
| 156 // The browser will call receivedBadProxies on completion. | 156 // The browser will call receivedBadProxies on completion. |
| 157 this.send('getBadProxies'); | 157 this.send('getBadProxies'); |
| 158 }, | 158 }, |
| 159 | 159 |
| 160 sendGetHostResolverInfo: function() { | 160 sendGetHostResolverInfo: function() { |
| 161 // The browser will call receivedHostResolverInfo on completion. | 161 // The browser will call receivedHostResolverInfo on completion. |
| 162 this.send('getHostResolverInfo'); | 162 this.send('getHostResolverInfo'); |
| 163 }, | 163 }, |
| 164 | 164 |
| 165 sendRunIPv6Probe: function() { | |
| 166 this.send('onRunIPv6Probe'); | |
| 167 }, | |
| 168 | |
| 169 sendClearBadProxies: function() { | 165 sendClearBadProxies: function() { |
| 170 this.send('clearBadProxies'); | 166 this.send('clearBadProxies'); |
| 171 }, | 167 }, |
| 172 | 168 |
| 173 sendClearHostResolverCache: function() { | 169 sendClearHostResolverCache: function() { |
| 174 this.send('clearHostResolverCache'); | 170 this.send('clearHostResolverCache'); |
| 175 }, | 171 }, |
| 176 | 172 |
| 177 sendClearBrowserCache: function() { | 173 sendClearBrowserCache: function() { |
| 178 this.send('clearBrowserCache'); | 174 this.send('clearBrowserCache'); |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 872 helper.removeObserver(this); | 868 helper.removeObserver(this); |
| 873 --this.observingCount_; | 869 --this.observingCount_; |
| 874 this.updatedData_[name] = data; | 870 this.updatedData_[name] = data; |
| 875 if (this.observingCount_ == 0) | 871 if (this.observingCount_ == 0) |
| 876 this.callback_(this.updatedData_); | 872 this.callback_(this.updatedData_); |
| 877 } | 873 } |
| 878 }; | 874 }; |
| 879 | 875 |
| 880 return BrowserBridge; | 876 return BrowserBridge; |
| 881 })(); | 877 })(); |
| OLD | NEW |