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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const base::Value& value, | 64 const base::Value& value, |
65 bool* out_value); | 65 bool* out_value); |
66 bool GetIntegerValue(const std::string& key, | 66 bool GetIntegerValue(const std::string& key, |
67 const base::Value& value, | 67 const base::Value& value, |
68 int* out_value); | 68 int* out_value); |
69 bool GetStringValue(const std::string& key, | 69 bool GetStringValue(const std::string& key, |
70 const base::Value& value, | 70 const base::Value& value, |
71 std::string* out_value); | 71 std::string* out_value); |
72 | 72 |
73 private: | 73 private: |
| 74 friend class NetworkChangeNotifierChromeosUpdateTest; |
| 75 |
74 ManagedType managed_type_; | 76 ManagedType managed_type_; |
75 | 77 |
76 // The path (e.g. service path or device path) of the managed state object. | 78 // The path (e.g. service path or device path) of the managed state object. |
77 std::string path_; | 79 std::string path_; |
78 | 80 |
79 // Common properties shared by all managed state objects. | 81 // Common properties shared by all managed state objects. |
80 std::string name_; // flimflam::kNameProperty | 82 std::string name_; // flimflam::kNameProperty |
81 std::string type_; // flimflam::kTypeProperty | 83 std::string type_; // flimflam::kTypeProperty |
82 | 84 |
83 // Tracks when the state is being observed. | 85 // Tracks when the state is being observed. |
84 bool is_observed_; | 86 bool is_observed_; |
85 | 87 |
86 DISALLOW_COPY_AND_ASSIGN(ManagedState); | 88 DISALLOW_COPY_AND_ASSIGN(ManagedState); |
87 }; | 89 }; |
88 | 90 |
89 } // namespace chromeos | 91 } // namespace chromeos |
90 | 92 |
91 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ | 93 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ |
OLD | NEW |