| 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 |
| 176 // Parses the properties for the network service or device. Mostly calls | 180 // Parses the properties for the network service or device. Mostly calls |
| 177 // managed->PropertyChanged(key, value) for each dictionary entry. | 181 // managed->PropertyChanged(key, value) for each dictionary entry. |
| 178 virtual void UpdateManagedStateProperties( | 182 virtual void UpdateManagedStateProperties( |
| 179 ManagedState::ManagedType type, | 183 ManagedState::ManagedType type, |
| 180 const std::string& path, | 184 const std::string& path, |
| 181 const base::DictionaryValue& properties) OVERRIDE; | 185 const base::DictionaryValue& properties) OVERRIDE; |
| 182 | 186 |
| 183 // Called by ShillPropertyHandler when a watched service property changes. | 187 // Called by ShillPropertyHandler when a watched service property changes. |
| 184 virtual void UpdateNetworkServiceProperty( | 188 virtual void UpdateNetworkServiceProperty( |
| 185 const std::string& service_path, | 189 const std::string& service_path, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 | 265 |
| 262 // Callbacks to run when a scan for the technology type completes. | 266 // Callbacks to run when a scan for the technology type completes. |
| 263 ScanCompleteCallbackMap scan_complete_callbacks_; | 267 ScanCompleteCallbackMap scan_complete_callbacks_; |
| 264 | 268 |
| 265 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 269 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
| 266 }; | 270 }; |
| 267 | 271 |
| 268 } // namespace chromeos | 272 } // namespace chromeos |
| 269 | 273 |
| 270 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 274 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
| OLD | NEW |