| 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 #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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 897 // are passed to shill. The name, localized_name, and language | 897 // are passed to shill. The name, localized_name, and language |
| 898 // fields are ignored. | 898 // fields are ignored. |
| 899 void SetApn(const CellularApn& apn); | 899 void SetApn(const CellularApn& apn); |
| 900 | 900 |
| 901 // Returns true if network supports activation. | 901 // Returns true if network supports activation. |
| 902 bool SupportsActivation() const; | 902 bool SupportsActivation() const; |
| 903 | 903 |
| 904 // Returns whether the network needs to be activated. | 904 // Returns whether the network needs to be activated. |
| 905 bool NeedsActivation() const; | 905 bool NeedsActivation() const; |
| 906 | 906 |
| 907 // Checks if the network should be activated by directly calling it's activate |
| 908 // function instead of going through the activation process. |
| 909 // Note: Currently Sprint is the only carrier that uses this. |
| 910 bool UsesDirectActivation() const; |
| 911 |
| 907 // Return a string representation of network technology. | 912 // Return a string representation of network technology. |
| 908 std::string GetNetworkTechnologyString() const; | 913 std::string GetNetworkTechnologyString() const; |
| 909 // Return a string representation of activation state. | 914 // Return a string representation of activation state. |
| 910 std::string GetActivationStateString() const; | 915 std::string GetActivationStateString() const; |
| 911 // Return a string representation of roaming state. | 916 // Return a string representation of roaming state. |
| 912 std::string GetRoamingStateString() const; | 917 std::string GetRoamingStateString() const; |
| 913 | 918 |
| 914 // Return a string representation of |activation_state|. | 919 // Return a string representation of |activation_state|. |
| 915 static std::string ActivationStateToString(ActivationState activation_state); | 920 static std::string ActivationStateToString(ActivationState activation_state); |
| 916 | 921 |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1732 const std::string& service_path) = 0; | 1737 const std::string& service_path) = 0; |
| 1733 | 1738 |
| 1734 // Factory function, creates a new instance and returns ownership. | 1739 // Factory function, creates a new instance and returns ownership. |
| 1735 // For normal usage, access the singleton via CrosLibrary::Get(). | 1740 // For normal usage, access the singleton via CrosLibrary::Get(). |
| 1736 static NetworkLibrary* GetImpl(bool stub); | 1741 static NetworkLibrary* GetImpl(bool stub); |
| 1737 }; | 1742 }; |
| 1738 | 1743 |
| 1739 } // namespace chromeos | 1744 } // namespace chromeos |
| 1740 | 1745 |
| 1741 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 1746 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
| OLD | NEW |