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 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
868 CellularNetwork* network_; | 868 CellularNetwork* network_; |
869 }; | 869 }; |
870 friend class TestApi; | 870 friend class TestApi; |
871 | 871 |
872 explicit CellularNetwork(const std::string& service_path); | 872 explicit CellularNetwork(const std::string& service_path); |
873 virtual ~CellularNetwork(); | 873 virtual ~CellularNetwork(); |
874 | 874 |
875 // Starts device activation process. Returns false if the device state does | 875 // Starts device activation process. Returns false if the device state does |
876 // not permit activation. | 876 // not permit activation. |
877 virtual bool StartActivation(); | 877 virtual bool StartActivation(); |
| 878 virtual void CompleteActivation(); |
878 | 879 |
879 bool activate_over_non_cellular_network() const { | 880 bool activate_over_non_cellular_network() const { |
880 return activate_over_non_cellular_network_; | 881 return activate_over_non_cellular_network_; |
881 } | 882 } |
882 const ActivationState activation_state() const { return activation_state_; } | 883 const ActivationState activation_state() const { return activation_state_; } |
883 bool activated() const { | 884 bool activated() const { |
884 return activation_state() == ACTIVATION_STATE_ACTIVATED; | 885 return activation_state() == ACTIVATION_STATE_ACTIVATED; |
885 } | 886 } |
886 const NetworkTechnology network_technology() const { | 887 const NetworkTechnology network_technology() const { |
887 return network_technology_; | 888 return network_technology_; |
(...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1738 const std::string& service_path) = 0; | 1739 const std::string& service_path) = 0; |
1739 | 1740 |
1740 // Factory function, creates a new instance and returns ownership. | 1741 // Factory function, creates a new instance and returns ownership. |
1741 // For normal usage, access the singleton via CrosLibrary::Get(). | 1742 // For normal usage, access the singleton via CrosLibrary::Get(). |
1742 static NetworkLibrary* GetImpl(bool stub); | 1743 static NetworkLibrary* GetImpl(bool stub); |
1743 }; | 1744 }; |
1744 | 1745 |
1745 } // namespace chromeos | 1746 } // namespace chromeos |
1746 | 1747 |
1747 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ | 1748 #endif // CHROME_BROWSER_CHROMEOS_CROS_NETWORK_LIBRARY_H_ |
OLD | NEW |