| 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 CHROMEOS_NETWORK_NETWORK_STATE_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_H_ |
| 6 #define CHROMEOS_NETWORK_NETWORK_STATE_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_STATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // If you change this method, update GetProperties too. | 28 // If you change this method, update GetProperties too. |
| 29 virtual bool PropertyChanged(const std::string& key, | 29 virtual bool PropertyChanged(const std::string& key, |
| 30 const base::Value& value) OVERRIDE; | 30 const base::Value& value) OVERRIDE; |
| 31 virtual void InitialPropertiesReceived() OVERRIDE; | 31 virtual void InitialPropertiesReceived() OVERRIDE; |
| 32 | 32 |
| 33 // Fills |dictionary| with the state properties. All the properties that are | 33 // Fills |dictionary| with the state properties. All the properties that are |
| 34 // accepted by PropertyChanged are stored in |dictionary|, no other values are | 34 // accepted by PropertyChanged are stored in |dictionary|, no other values are |
| 35 // stored. | 35 // stored. |
| 36 void GetProperties(base::DictionaryValue* dictionary) const; | 36 void GetProperties(base::DictionaryValue* dictionary) const; |
| 37 | 37 |
| 38 // Fills |dictionary| with the state properties required to configure a |
| 39 // network. |
| 40 void GetConfigProperties(base::DictionaryValue* dictionary) const; |
| 41 |
| 38 // Accessors | 42 // Accessors |
| 39 const std::string& security() const { return security_; } | 43 const std::string& security() const { return security_; } |
| 40 const std::string& ip_address() const { return ip_address_; } | 44 const std::string& ip_address() const { return ip_address_; } |
| 41 const std::vector<std::string>& dns_servers() const { return dns_servers_; } | 45 const std::vector<std::string>& dns_servers() const { return dns_servers_; } |
| 42 const std::string& device_path() const { return device_path_; } | 46 const std::string& device_path() const { return device_path_; } |
| 43 const std::string& guid() const { return guid_; } | 47 const std::string& guid() const { return guid_; } |
| 44 const std::string& connection_state() const { return connection_state_; } | 48 const std::string& connection_state() const { return connection_state_; } |
| 45 const std::string& profile_path() const { return profile_path_; } | 49 const std::string& profile_path() const { return profile_path_; } |
| 46 const std::string& error() const { return error_; } | 50 const std::string& error() const { return error_; } |
| 47 const std::string& error_details() const { return error_details_; } | 51 const std::string& error_details() const { return error_details_; } |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 std::string roaming_; | 130 std::string roaming_; |
| 127 bool activate_over_non_cellular_networks_; | 131 bool activate_over_non_cellular_networks_; |
| 128 bool cellular_out_of_credits_; | 132 bool cellular_out_of_credits_; |
| 129 | 133 |
| 130 DISALLOW_COPY_AND_ASSIGN(NetworkState); | 134 DISALLOW_COPY_AND_ASSIGN(NetworkState); |
| 131 }; | 135 }; |
| 132 | 136 |
| 133 } // namespace chromeos | 137 } // namespace chromeos |
| 134 | 138 |
| 135 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ | 139 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ |
| OLD | NEW |