| 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_MANAGED_STATE_H_ | 5 #ifndef CHROMEOS_NETWORK_MANAGED_STATE_H_ |
| 6 #define CHROMEOS_NETWORK_MANAGED_STATE_H_ | 6 #define CHROMEOS_NETWORK_MANAGED_STATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 // properties, e.g. name from hex_ssid in NetworkState. | 58 // properties, e.g. name from hex_ssid in NetworkState. |
| 59 // |properties| contains the complete set of initial properties. | 59 // |properties| contains the complete set of initial properties. |
| 60 // Returns true if any additional properties are updated. | 60 // Returns true if any additional properties are updated. |
| 61 virtual bool InitialPropertiesReceived( | 61 virtual bool InitialPropertiesReceived( |
| 62 const base::DictionaryValue& properties); | 62 const base::DictionaryValue& properties); |
| 63 | 63 |
| 64 // Fills |dictionary| with a minimal set of state properties for the network | 64 // Fills |dictionary| with a minimal set of state properties for the network |
| 65 // type. See implementations for which properties are included. | 65 // type. See implementations for which properties are included. |
| 66 virtual void GetStateProperties(base::DictionaryValue* dictionary) const; | 66 virtual void GetStateProperties(base::DictionaryValue* dictionary) const; |
| 67 | 67 |
| 68 const ManagedType managed_type() const { return managed_type_; } | 68 ManagedType managed_type() const { return managed_type_; } |
| 69 const std::string& path() const { return path_; } | 69 const std::string& path() const { return path_; } |
| 70 const std::string& name() const { return name_; } | 70 const std::string& name() const { return name_; } |
| 71 const std::string& type() const { return type_; } | 71 const std::string& type() const { return type_; } |
| 72 bool update_received() const { return update_received_; } | 72 bool update_received() const { return update_received_; } |
| 73 void set_update_received() { update_received_ = true; } | 73 void set_update_received() { update_received_ = true; } |
| 74 bool update_requested() const { return update_requested_; } | 74 bool update_requested() const { return update_requested_; } |
| 75 void set_update_requested(bool update_requested) { | 75 void set_update_requested(bool update_requested) { |
| 76 update_requested_ = update_requested; | 76 update_requested_ = update_requested; |
| 77 } | 77 } |
| 78 | 78 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 | 122 |
| 123 // Tracks when an update has been requested. | 123 // Tracks when an update has been requested. |
| 124 bool update_requested_; | 124 bool update_requested_; |
| 125 | 125 |
| 126 DISALLOW_COPY_AND_ASSIGN(ManagedState); | 126 DISALLOW_COPY_AND_ASSIGN(ManagedState); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 } // namespace chromeos | 129 } // namespace chromeos |
| 130 | 130 |
| 131 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ | 131 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ |
| OLD | NEW |