Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: chromeos/network/managed_state.h

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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>
9
8 #include <string> 10 #include <string>
9 11
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h"
12 #include "chromeos/chromeos_export.h" 14 #include "chromeos/chromeos_export.h"
13 15
14 namespace base { 16 namespace base {
15 class Value; 17 class Value;
16 class DictionaryValue; 18 class DictionaryValue;
17 } 19 }
18 20
19 namespace chromeos { 21 namespace chromeos {
20 22
21 class DeviceState; 23 class DeviceState;
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 const base::Value& value, 96 const base::Value& value,
95 bool* out_value); 97 bool* out_value);
96 bool GetIntegerValue(const std::string& key, 98 bool GetIntegerValue(const std::string& key,
97 const base::Value& value, 99 const base::Value& value,
98 int* out_value); 100 int* out_value);
99 bool GetStringValue(const std::string& key, 101 bool GetStringValue(const std::string& key,
100 const base::Value& value, 102 const base::Value& value,
101 std::string* out_value); 103 std::string* out_value);
102 bool GetUInt32Value(const std::string& key, 104 bool GetUInt32Value(const std::string& key,
103 const base::Value& value, 105 const base::Value& value,
104 uint32* out_value); 106 uint32_t* out_value);
105 107
106 void set_name(const std::string& name) { name_ = name; } 108 void set_name(const std::string& name) { name_ = name; }
107 109
108 private: 110 private:
109 friend class NetworkChangeNotifierChromeosUpdateTest; 111 friend class NetworkChangeNotifierChromeosUpdateTest;
110 112
111 ManagedType managed_type_; 113 ManagedType managed_type_;
112 114
113 // The path (e.g. service path or device path) of the managed state object. 115 // The path (e.g. service path or device path) of the managed state object.
114 std::string path_; 116 std::string path_;
115 117
116 // Common properties shared by all managed state objects. 118 // Common properties shared by all managed state objects.
117 std::string name_; // shill::kNameProperty 119 std::string name_; // shill::kNameProperty
118 std::string type_; // shill::kTypeProperty 120 std::string type_; // shill::kTypeProperty
119 121
120 // Set to true when the an update has been received. 122 // Set to true when the an update has been received.
121 bool update_received_; 123 bool update_received_;
122 124
123 // Tracks when an update has been requested. 125 // Tracks when an update has been requested.
124 bool update_requested_; 126 bool update_requested_;
125 127
126 DISALLOW_COPY_AND_ASSIGN(ManagedState); 128 DISALLOW_COPY_AND_ASSIGN(ManagedState);
127 }; 129 };
128 130
129 } // namespace chromeos 131 } // namespace chromeos
130 132
131 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ 133 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_
OLDNEW
« no previous file with comments | « chromeos/network/managed_network_configuration_handler_unittest.cc ('k') | chromeos/network/managed_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698