| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 } | 212 } |
| 213 | 213 |
| 214 // WirelessNetwork overrides. | 214 // WirelessNetwork overrides. |
| 215 virtual void Clear(); | 215 virtual void Clear(); |
| 216 virtual void ConfigureFromService(const ServiceInfo& service); | 216 virtual void ConfigureFromService(const ServiceInfo& service); |
| 217 | 217 |
| 218 // Return a string representation of the encryption code. | 218 // Return a string representation of the encryption code. |
| 219 // This not translated and should be only used for debugging purposes. | 219 // This not translated and should be only used for debugging purposes. |
| 220 std::string GetEncryptionString(); | 220 std::string GetEncryptionString(); |
| 221 | 221 |
| 222 // Return true if cert_path_ indicates that we have loaded the certificate. |
| 223 bool IsCertificateLoaded() const; |
| 224 |
| 222 protected: | 225 protected: |
| 223 ConnectionSecurity encryption_; | 226 ConnectionSecurity encryption_; |
| 224 std::string passphrase_; | 227 std::string passphrase_; |
| 225 std::string identity_; | 228 std::string identity_; |
| 226 std::string cert_path_; | 229 std::string cert_path_; |
| 227 }; | 230 }; |
| 228 | 231 |
| 229 typedef std::vector<WifiNetwork> WifiNetworkVector; | 232 typedef std::vector<WifiNetwork> WifiNetworkVector; |
| 230 typedef std::vector<CellularNetwork> CellularNetworkVector; | 233 typedef std::vector<CellularNetwork> CellularNetworkVector; |
| 231 | 234 |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 virtual std::string GetHtmlInfo(int refresh) = 0; | 420 virtual std::string GetHtmlInfo(int refresh) = 0; |
| 418 | 421 |
| 419 // Factory function, creates a new instance and returns ownership. | 422 // Factory function, creates a new instance and returns ownership. |
| 420 // For normal usage, access the singleton via CrosLibrary::Get(). | 423 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 421 static NetworkLibrary* GetImpl(bool stub); | 424 static NetworkLibrary* GetImpl(bool stub); |
| 422 }; | 425 }; |
| 423 | 426 |
| 424 } // namespace chromeos | 427 } // namespace chromeos |
| 425 | 428 |
| 426 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 429 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| OLD | NEW |