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_NETWORK_STATE_HANDLER_H_ | 5 #ifndef CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 6 #define CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 protected: | 166 protected: |
167 NetworkStateHandler(); | 167 NetworkStateHandler(); |
168 | 168 |
169 // ShillPropertyHandler::Listener overrides. | 169 // ShillPropertyHandler::Listener overrides. |
170 | 170 |
171 // This adds new entries to the managed list specified by |type| and deletes | 171 // This adds new entries to the managed list specified by |type| and deletes |
172 // any entries that are no longer in the list. | 172 // any entries that are no longer in the list. |
173 virtual void UpdateManagedList(ManagedState::ManagedType type, | 173 virtual void UpdateManagedList(ManagedState::ManagedType type, |
174 const base::ListValue& entries) OVERRIDE; | 174 const base::ListValue& entries) OVERRIDE; |
175 | 175 |
176 // The list of profiles changed (i.e. a user has logged in). Re-request | |
177 // properties for all services since they may have changed. | |
178 virtual void ProfileListChanged(); | |
179 | |
180 // Parses the properties for the network service or device. Mostly calls | 176 // Parses the properties for the network service or device. Mostly calls |
181 // managed->PropertyChanged(key, value) for each dictionary entry. | 177 // managed->PropertyChanged(key, value) for each dictionary entry. |
182 virtual void UpdateManagedStateProperties( | 178 virtual void UpdateManagedStateProperties( |
183 ManagedState::ManagedType type, | 179 ManagedState::ManagedType type, |
184 const std::string& path, | 180 const std::string& path, |
185 const base::DictionaryValue& properties) OVERRIDE; | 181 const base::DictionaryValue& properties) OVERRIDE; |
186 | 182 |
187 // Called by ShillPropertyHandler when a watched service property changes. | 183 // Called by ShillPropertyHandler when a watched service property changes. |
188 virtual void UpdateNetworkServiceProperty( | 184 virtual void UpdateNetworkServiceProperty( |
189 const std::string& service_path, | 185 const std::string& service_path, |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 261 |
266 // Callbacks to run when a scan for the technology type completes. | 262 // Callbacks to run when a scan for the technology type completes. |
267 ScanCompleteCallbackMap scan_complete_callbacks_; | 263 ScanCompleteCallbackMap scan_complete_callbacks_; |
268 | 264 |
269 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 265 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
270 }; | 266 }; |
271 | 267 |
272 } // namespace chromeos | 268 } // namespace chromeos |
273 | 269 |
274 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 270 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
OLD | NEW |