| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 // Request an update for an existing NetworkState, e.g. after configuring | 197 // Request an update for an existing NetworkState, e.g. after configuring |
| 198 // a network. This is a no-op if an update request is already pending. To | 198 // a network. This is a no-op if an update request is already pending. To |
| 199 // ensure that a change is picked up, this must be called after Shill | 199 // ensure that a change is picked up, this must be called after Shill |
| 200 // acknowledged it (e.g. in the callback of a SetProperties). | 200 // acknowledged it (e.g. in the callback of a SetProperties). |
| 201 // When the properties are received, NetworkPropertiesUpdated will be | 201 // When the properties are received, NetworkPropertiesUpdated will be |
| 202 // signaled for each member of |observers_|, regardless of whether any | 202 // signaled for each member of |observers_|, regardless of whether any |
| 203 // properties actually changed. | 203 // properties actually changed. |
| 204 void RequestUpdateForNetwork(const std::string& service_path); | 204 void RequestUpdateForNetwork(const std::string& service_path); |
| 205 | 205 |
| 206 // Request an update for all existing NetworkState entries, e.g. after | |
| 207 // loading an ONC configuration file that may have updated one or more | |
| 208 // existing networks. | |
| 209 void RequestUpdateForAllNetworks(); | |
| 210 | |
| 211 // Clear the last_error value for the NetworkState for |service_path|. | 206 // Clear the last_error value for the NetworkState for |service_path|. |
| 212 void ClearLastErrorForNetwork(const std::string& service_path); | 207 void ClearLastErrorForNetwork(const std::string& service_path); |
| 213 | 208 |
| 214 // Set the list of devices on which portal check is enabled. | 209 // Set the list of devices on which portal check is enabled. |
| 215 void SetCheckPortalList(const std::string& check_portal_list); | 210 void SetCheckPortalList(const std::string& check_portal_list); |
| 216 | 211 |
| 217 const std::string& GetCheckPortalListForTest() const { | 212 const std::string& GetCheckPortalListForTest() const { |
| 218 return check_portal_list_; | 213 return check_portal_list_; |
| 219 } | 214 } |
| 220 | 215 |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 | 355 |
| 361 // Callbacks to run when a scan for the technology type completes. | 356 // Callbacks to run when a scan for the technology type completes. |
| 362 ScanCompleteCallbackMap scan_complete_callbacks_; | 357 ScanCompleteCallbackMap scan_complete_callbacks_; |
| 363 | 358 |
| 364 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 359 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
| 365 }; | 360 }; |
| 366 | 361 |
| 367 } // namespace chromeos | 362 } // namespace chromeos |
| 368 | 363 |
| 369 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 364 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
| OLD | NEW |