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 26 matching lines...) Expand all Loading... | |
37 | 37 |
38 // ManagedState overrides | 38 // ManagedState overrides |
39 // If you change this method, update GetProperties too. | 39 // If you change this method, update GetProperties too. |
40 virtual bool PropertyChanged(const std::string& key, | 40 virtual bool PropertyChanged(const std::string& key, |
41 const base::Value& value) override; | 41 const base::Value& value) override; |
42 virtual bool InitialPropertiesReceived( | 42 virtual bool InitialPropertiesReceived( |
43 const base::DictionaryValue& properties) override; | 43 const base::DictionaryValue& properties) override; |
44 virtual void GetStateProperties( | 44 virtual void GetStateProperties( |
45 base::DictionaryValue* dictionary) const override; | 45 base::DictionaryValue* dictionary) const override; |
46 | 46 |
47 // Like GetStateProperties, but only sets properties needed for configuration | |
48 // i.e. no visible state properties. | |
pneubeck (no reviews)
2014/11/11 16:09:31
what are 'visible state properties' ?
maybe drop t
stevenjb
2014/11/12 01:23:29
Clarified.
| |
49 void GetConfigurationStateProperties(base::DictionaryValue* dictionary) const; | |
50 | |
47 void IPConfigPropertiesChanged(const base::DictionaryValue& properties); | 51 void IPConfigPropertiesChanged(const base::DictionaryValue& properties); |
48 | 52 |
49 // Returns true, if the network requires a service activation. | 53 // Returns true, if the network requires a service activation. |
50 bool RequiresActivation() const; | 54 bool RequiresActivation() const; |
51 | 55 |
52 // Accessors | 56 // Accessors |
53 bool visible() const { return visible_; } | 57 bool visible() const { return visible_; } |
54 const std::string& security() const { return security_; } | 58 const std::string& security() const { return security_; } |
55 const std::string& device_path() const { return device_path_; } | 59 const std::string& device_path() const { return device_path_; } |
56 const std::string& guid() const { return guid_; } | 60 const std::string& guid() const { return guid_; } |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 // TODO(pneubeck): Remove this once (Managed)NetworkConfigurationHandler | 184 // TODO(pneubeck): Remove this once (Managed)NetworkConfigurationHandler |
181 // provides proxy configuration. crbug.com/241775 | 185 // provides proxy configuration. crbug.com/241775 |
182 base::DictionaryValue proxy_config_; | 186 base::DictionaryValue proxy_config_; |
183 | 187 |
184 DISALLOW_COPY_AND_ASSIGN(NetworkState); | 188 DISALLOW_COPY_AND_ASSIGN(NetworkState); |
185 }; | 189 }; |
186 | 190 |
187 } // namespace chromeos | 191 } // namespace chromeos |
188 | 192 |
189 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ | 193 #endif // CHROMEOS_NETWORK_NETWORK_STATE_H_ |
OLD | NEW |