| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 virtual const WifiNetworkVector& wifi_networks() const = 0; | 175 virtual const WifiNetworkVector& wifi_networks() const = 0; |
| 176 | 176 |
| 177 // Returns the current list of cellular networks. | 177 // Returns the current list of cellular networks. |
| 178 virtual const CellularNetworkVector& cellular_networks() const = 0; | 178 virtual const CellularNetworkVector& cellular_networks() const = 0; |
| 179 | 179 |
| 180 // Request a scan for new wifi networks. | 180 // Request a scan for new wifi networks. |
| 181 virtual void RequestWifiScan() = 0; | 181 virtual void RequestWifiScan() = 0; |
| 182 | 182 |
| 183 // Connect to the specified wireless network with password. | 183 // Connect to the specified wireless network with password. |
| 184 virtual void ConnectToWifiNetwork(WifiNetwork network, | 184 virtual void ConnectToWifiNetwork(WifiNetwork network, |
| 185 const string16& password) = 0; | 185 const string16& password, |
| 186 const string16& identity, |
| 187 const string16& certpath) = 0; |
| 186 | 188 |
| 187 // Connect to the specified wifi ssid with password. | 189 // Connect to the specified wifi ssid with password. |
| 188 virtual void ConnectToWifiNetwork(const string16& ssid, | 190 virtual void ConnectToWifiNetwork(const string16& ssid, |
| 189 const string16& password) = 0; | 191 const string16& password, |
| 192 const string16& identity, |
| 193 const string16& certpath) = 0; |
| 190 | 194 |
| 191 // Connect to the specified cellular network. | 195 // Connect to the specified cellular network. |
| 192 virtual void ConnectToCellularNetwork(CellularNetwork network) = 0; | 196 virtual void ConnectToCellularNetwork(CellularNetwork network) = 0; |
| 193 | 197 |
| 194 virtual bool ethernet_available() const = 0; | 198 virtual bool ethernet_available() const = 0; |
| 195 virtual bool wifi_available() const = 0; | 199 virtual bool wifi_available() const = 0; |
| 196 virtual bool cellular_available() const = 0; | 200 virtual bool cellular_available() const = 0; |
| 197 | 201 |
| 198 virtual bool ethernet_enabled() const = 0; | 202 virtual bool ethernet_enabled() const = 0; |
| 199 virtual bool wifi_enabled() const = 0; | 203 virtual bool wifi_enabled() const = 0; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 // Returns the current list of cellular networks. | 274 // Returns the current list of cellular networks. |
| 271 virtual const CellularNetworkVector& cellular_networks() const { | 275 virtual const CellularNetworkVector& cellular_networks() const { |
| 272 return cellular_networks_; | 276 return cellular_networks_; |
| 273 } | 277 } |
| 274 | 278 |
| 275 // Request a scan for new wifi networks. | 279 // Request a scan for new wifi networks. |
| 276 virtual void RequestWifiScan(); | 280 virtual void RequestWifiScan(); |
| 277 | 281 |
| 278 // Connect to the specified wireless network with password. | 282 // Connect to the specified wireless network with password. |
| 279 virtual void ConnectToWifiNetwork(WifiNetwork network, | 283 virtual void ConnectToWifiNetwork(WifiNetwork network, |
| 280 const string16& password); | 284 const string16& password, |
| 285 const string16& identity, |
| 286 const string16& certpath); |
| 281 | 287 |
| 282 // Connect to the specified wifi ssid with password. | 288 // Connect to the specified wifi ssid with password. |
| 283 virtual void ConnectToWifiNetwork(const string16& ssid, | 289 virtual void ConnectToWifiNetwork(const string16& ssid, |
| 284 const string16& password); | 290 const string16& password, |
| 291 const string16& identity, |
| 292 const string16& certpath); |
| 285 | 293 |
| 286 // Connect to the specified cellular network. | 294 // Connect to the specified cellular network. |
| 287 virtual void ConnectToCellularNetwork(CellularNetwork network); | 295 virtual void ConnectToCellularNetwork(CellularNetwork network); |
| 288 | 296 |
| 289 virtual bool ethernet_available() const { | 297 virtual bool ethernet_available() const { |
| 290 return available_devices_ & (1 << TYPE_ETHERNET); } | 298 return available_devices_ & (1 << TYPE_ETHERNET); } |
| 291 virtual bool wifi_available() const { | 299 virtual bool wifi_available() const { |
| 292 return available_devices_ & (1 << TYPE_WIFI); } | 300 return available_devices_ & (1 << TYPE_WIFI); } |
| 293 virtual bool cellular_available() const { | 301 virtual bool cellular_available() const { |
| 294 return available_devices_ & (1 << TYPE_CELLULAR); } | 302 return available_devices_ & (1 << TYPE_CELLULAR); } |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 int connected_devices_; | 407 int connected_devices_; |
| 400 | 408 |
| 401 bool offline_mode_; | 409 bool offline_mode_; |
| 402 | 410 |
| 403 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImpl); | 411 DISALLOW_COPY_AND_ASSIGN(NetworkLibraryImpl); |
| 404 }; | 412 }; |
| 405 | 413 |
| 406 } // namespace chromeos | 414 } // namespace chromeos |
| 407 | 415 |
| 408 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 416 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| OLD | NEW |