Chromium Code Reviews| 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; | |
|
Ryan Hansberry
2017/04/20 01:38:35
Why is this necessary?
Kyle Horimoto
2017/04/20 02:16:07
To call set_type().
| |
| 115 | 116 |
| 116 ManagedType managed_type_; | 117 ManagedType managed_type_; |
| 117 | 118 |
| 118 // The path (e.g. service path or device path) of the managed state object. | 119 // The path (e.g. service path or device path) of the managed state object. |
| 119 std::string path_; | 120 std::string path_; |
| 120 | 121 |
| 121 // Common properties shared by all managed state objects. | 122 // Common properties shared by all managed state objects. |
| 122 std::string name_; // shill::kNameProperty | 123 std::string name_; // shill::kNameProperty |
| 123 std::string type_; // shill::kTypeProperty | 124 std::string type_; // shill::kTypeProperty |
| 124 | 125 |
| 125 // Set to true when the an update has been received. | 126 // Set to true when the an update has been received. |
| 126 bool update_received_; | 127 bool update_received_; |
| 127 | 128 |
| 128 // Tracks when an update has been requested. | 129 // Tracks when an update has been requested. |
| 129 bool update_requested_; | 130 bool update_requested_; |
| 130 | 131 |
| 131 DISALLOW_COPY_AND_ASSIGN(ManagedState); | 132 DISALLOW_COPY_AND_ASSIGN(ManagedState); |
| 132 }; | 133 }; |
| 133 | 134 |
| 134 } // namespace chromeos | 135 } // namespace chromeos |
| 135 | 136 |
| 136 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ | 137 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ |
| OLD | NEW |