| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual void GetStateProperties( | 46 virtual void GetStateProperties( |
| 47 base::DictionaryValue* dictionary) const override; | 47 base::DictionaryValue* dictionary) const override; |
| 48 | 48 |
| 49 void IPConfigPropertiesChanged(const base::DictionaryValue& properties); | 49 void IPConfigPropertiesChanged(const base::DictionaryValue& properties); |
| 50 | 50 |
| 51 // Returns true, if the network requires a service activation. | 51 // Returns true, if the network requires a service activation. |
| 52 bool RequiresActivation() const; | 52 bool RequiresActivation() const; |
| 53 | 53 |
| 54 // Accessors | 54 // Accessors |
| 55 bool visible() const { return visible_; } | 55 bool visible() const { return visible_; } |
| 56 const std::string& security() const { return security_; } | 56 const std::string& security_class() const { return security_class_; } |
| 57 const std::string& device_path() const { return device_path_; } | 57 const std::string& device_path() const { return device_path_; } |
| 58 const std::string& guid() const { return guid_; } | 58 const std::string& guid() const { return guid_; } |
| 59 const std::string& profile_path() const { return profile_path_; } | 59 const std::string& profile_path() const { return profile_path_; } |
| 60 const std::string& error() const { return error_; } | 60 const std::string& error() const { return error_; } |
| 61 const std::string& last_error() const { return last_error_; } | 61 const std::string& last_error() const { return last_error_; } |
| 62 void clear_last_error() { last_error_.clear(); } | 62 void clear_last_error() { last_error_.clear(); } |
| 63 | 63 |
| 64 // Returns |connection_state_| if visible, kStateDisconnect otherwise. | 64 // Returns |connection_state_| if visible, kStateDisconnect otherwise. |
| 65 std::string connection_state() const; | 65 std::string connection_state() const; |
| 66 | 66 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // Updates |name_| from WiFi.HexSSID if provided, and validates |name_|. | 133 // Updates |name_| from WiFi.HexSSID if provided, and validates |name_|. |
| 134 // Returns true if |name_| changes. | 134 // Returns true if |name_| changes. |
| 135 bool UpdateName(const base::DictionaryValue& properties); | 135 bool UpdateName(const base::DictionaryValue& properties); |
| 136 | 136 |
| 137 // Set to true if the network is a member of Manager.Services. | 137 // Set to true if the network is a member of Manager.Services. |
| 138 bool visible_; | 138 bool visible_; |
| 139 | 139 |
| 140 // Network Service properties. Avoid adding any additional properties here. | 140 // Network Service properties. Avoid adding any additional properties here. |
| 141 // Instead use NetworkConfigurationHandler::GetProperties() to asynchronously | 141 // Instead use NetworkConfigurationHandler::GetProperties() to asynchronously |
| 142 // request properties from Shill. | 142 // request properties from Shill. |
| 143 std::string security_; | 143 std::string security_class_; |
| 144 std::string eap_method_; // Needed for WiFi EAP networks | 144 std::string eap_method_; // Needed for WiFi EAP networks |
| 145 std::string device_path_; | 145 std::string device_path_; |
| 146 std::string guid_; | 146 std::string guid_; |
| 147 std::string connection_state_; | 147 std::string connection_state_; |
| 148 std::string profile_path_; | 148 std::string profile_path_; |
| 149 std::vector<uint8_t> raw_ssid_; // Unknown encoding. Not necessarily UTF-8. | 149 std::vector<uint8_t> raw_ssid_; // Unknown encoding. Not necessarily UTF-8. |
| 150 bool connectable_; | 150 bool connectable_; |
| 151 | 151 |
| 152 // Reflects the current Shill Service.Error property. This might get cleared | 152 // Reflects the current Shill Service.Error property. This might get cleared |
| 153 // by Shill shortly after a failure. | 153 // by Shill shortly after a failure. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 184 // TODO(pneubeck): Remove this once (Managed)NetworkConfigurationHandler | 184 // TODO(pneubeck): Remove this once (Managed)NetworkConfigurationHandler |
| 185 // provides proxy configuration. crbug.com/241775 | 185 // provides proxy configuration. crbug.com/241775 |
| 186 base::DictionaryValue proxy_config_; | 186 base::DictionaryValue proxy_config_; |
| 187 | 187 |
| 188 DISALLOW_COPY_AND_ASSIGN(NetworkState); | 188 DISALLOW_COPY_AND_ASSIGN(NetworkState); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace chromeos | 191 } // namespace chromeos |
| 192 | 192 |
| 193 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ | 193 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ |
| OLD | NEW |