| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 int wifi_strength() const { return wifi_.strength; } | 167 int wifi_strength() const { return wifi_.strength; } |
| 168 | 168 |
| 169 const std::string& cellular_name() const { return cellular_.name; } | 169 const std::string& cellular_name() const { return cellular_.name; } |
| 170 bool cellular_connecting() const { return cellular_.connecting; } | 170 bool cellular_connecting() const { return cellular_.connecting; } |
| 171 bool cellular_connected() const { return cellular_.connected; } | 171 bool cellular_connected() const { return cellular_.connected; } |
| 172 int cellular_strength() const { return cellular_.strength; } | 172 int cellular_strength() const { return cellular_.strength; } |
| 173 | 173 |
| 174 // Return true if any network is currently connected. | 174 // Return true if any network is currently connected. |
| 175 bool Connected() const; | 175 bool Connected() const; |
| 176 | 176 |
| 177 // Returns the current IP address if connected. If not, returns empty string. |
| 178 const std::string& IPAddress() const; |
| 179 |
| 177 // Returns the current list of wifi networks. | 180 // Returns the current list of wifi networks. |
| 178 const WifiNetworkVector& wifi_networks() const { return wifi_networks_; } | 181 const WifiNetworkVector& wifi_networks() const { return wifi_networks_; } |
| 179 | 182 |
| 180 // Returns the current list of cellular networks. | 183 // Returns the current list of cellular networks. |
| 181 const CellularNetworkVector& cellular_networks() const { | 184 const CellularNetworkVector& cellular_networks() const { |
| 182 return cellular_networks_; | 185 return cellular_networks_; |
| 183 } | 186 } |
| 184 | 187 |
| 185 // Connect to the specified wireless network with password. | 188 // Connect to the specified wireless network with password. |
| 186 void ConnectToWifiNetwork(WifiNetwork network, const string16& password); | 189 void ConnectToWifiNetwork(WifiNetwork network, const string16& password); |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 int network_devices_; | 296 int network_devices_; |
| 294 | 297 |
| 295 bool offline_mode_; | 298 bool offline_mode_; |
| 296 | 299 |
| 297 DISALLOW_COPY_AND_ASSIGN(NetworkLibrary); | 300 DISALLOW_COPY_AND_ASSIGN(NetworkLibrary); |
| 298 }; | 301 }; |
| 299 | 302 |
| 300 } // namespace chromeos | 303 } // namespace chromeos |
| 301 | 304 |
| 302 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 305 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| OLD | NEW |