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

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

Issue 2819303002: Changed wifi arcs to mobile bars for Tether network. (Closed)
Patch Set: Fixed small typo preventing unit tests from building. Created 3 years, 7 months 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> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "chromeos/chromeos_export.h" 15 #include "chromeos/chromeos_export.h"
16 16
17 namespace ash {
18 namespace network_icon {
19 class NetworkIconTest;
20 } // namespace network_icon
21 } // namesapce ash
22
17 namespace base { 23 namespace base {
18 class Value; 24 class Value;
19 class DictionaryValue; 25 class DictionaryValue;
20 } 26 }
21 27
22 namespace chromeos { 28 namespace chromeos {
23 29
24 class DeviceState; 30 class DeviceState;
25 class NetworkState; 31 class NetworkState;
26 class NetworkTypePattern; 32 class NetworkTypePattern;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 bool GetUInt32Value(const std::string& key, 112 bool GetUInt32Value(const std::string& key,
107 const base::Value& value, 113 const base::Value& value,
108 uint32_t* out_value); 114 uint32_t* out_value);
109 115
110 void set_name(const std::string& name) { name_ = name; } 116 void set_name(const std::string& name) { name_ = name; }
111 void set_type(const std::string& type) { type_ = type; } 117 void set_type(const std::string& type) { type_ = type; }
112 118
113 private: 119 private:
114 friend class NetworkChangeNotifierChromeosUpdateTest; 120 friend class NetworkChangeNotifierChromeosUpdateTest;
115 friend class NetworkStateHandler; 121 friend class NetworkStateHandler;
122 friend class ash::network_icon::NetworkIconTest;
116 123
117 ManagedType managed_type_; 124 ManagedType managed_type_;
118 125
119 // The path (e.g. service path or device path) of the managed state object. 126 // The path (e.g. service path or device path) of the managed state object.
120 std::string path_; 127 std::string path_;
121 128
122 // Common properties shared by all managed state objects. 129 // Common properties shared by all managed state objects.
123 std::string name_; // shill::kNameProperty 130 std::string name_; // shill::kNameProperty
124 std::string type_; // shill::kTypeProperty 131 std::string type_; // shill::kTypeProperty
125 132
126 // Set to true when the an update has been received. 133 // Set to true when the an update has been received.
127 bool update_received_; 134 bool update_received_;
128 135
129 // Tracks when an update has been requested. 136 // Tracks when an update has been requested.
130 bool update_requested_; 137 bool update_requested_;
131 138
132 DISALLOW_COPY_AND_ASSIGN(ManagedState); 139 DISALLOW_COPY_AND_ASSIGN(ManagedState);
133 }; 140 };
134 141
135 } // namespace chromeos 142 } // namespace chromeos
136 143
137 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_ 144 #endif // CHROMEOS_NETWORK_MANAGED_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698