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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 std::string* out_value); | 105 std::string* out_value); |
106 bool GetUInt32Value(const std::string& key, | 106 bool GetUInt32Value(const std::string& key, |
107 const base::Value& value, | 107 const base::Value& value, |
108 uint32_t* out_value); | 108 uint32_t* out_value); |
109 | 109 |
110 void set_name(const std::string& name) { name_ = name; } | 110 void set_name(const std::string& name) { name_ = name; } |
111 void set_type(const std::string& type) { type_ = type; } | 111 void set_type(const std::string& type) { type_ = type; } |
112 | 112 |
113 private: | 113 private: |
114 friend class NetworkChangeNotifierChromeosUpdateTest; | 114 friend class NetworkChangeNotifierChromeosUpdateTest; |
115 friend class NetworkStateHandler; | |
116 | 115 |
117 ManagedType managed_type_; | 116 ManagedType managed_type_; |
118 | 117 |
119 // The path (e.g. service path or device path) of the managed state object. | 118 // The path (e.g. service path or device path) of the managed state object. |
120 std::string path_; | 119 std::string path_; |
121 | 120 |
122 // Common properties shared by all managed state objects. | 121 // Common properties shared by all managed state objects. |
123 std::string name_; // shill::kNameProperty | 122 std::string name_; // shill::kNameProperty |
124 std::string type_; // shill::kTypeProperty | 123 std::string type_; // shill::kTypeProperty |
125 | 124 |
126 // Set to true when the an update has been received. | 125 // Set to true when the an update has been received. |
127 bool update_received_; | 126 bool update_received_; |
128 | 127 |
129 // Tracks when an update has been requested. | 128 // Tracks when an update has been requested. |
130 bool update_requested_; | 129 bool update_requested_; |
131 | 130 |
132 DISALLOW_COPY_AND_ASSIGN(ManagedState); | 131 DISALLOW_COPY_AND_ASSIGN(ManagedState); |
133 }; | 132 }; |
134 | 133 |
135 } // namespace chromeos | 134 } // namespace chromeos |
136 | 135 |
137 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ | 136 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ |
OLD | NEW |