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 <memory> | 9 #include <memory> |
10 #include <set> | 10 #include <set> |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 208 |
209 // Requests an update for an existing NetworkState, e.g. after configuring | 209 // Requests an update for an existing NetworkState, e.g. after configuring |
210 // a network. This is a no-op if an update request is already pending. To | 210 // a network. This is a no-op if an update request is already pending. To |
211 // ensure that a change is picked up, this must be called after Shill | 211 // ensure that a change is picked up, this must be called after Shill |
212 // acknowledged it (e.g. in the callback of a SetProperties). | 212 // acknowledged it (e.g. in the callback of a SetProperties). |
213 // When the properties are received, NetworkPropertiesUpdated will be | 213 // When the properties are received, NetworkPropertiesUpdated will be |
214 // signaled for each member of |observers_|, regardless of whether any | 214 // signaled for each member of |observers_|, regardless of whether any |
215 // properties actually changed. | 215 // properties actually changed. |
216 void RequestUpdateForNetwork(const std::string& service_path); | 216 void RequestUpdateForNetwork(const std::string& service_path); |
217 | 217 |
| 218 // Informs NetworkStateHandler to notify observers that the properties for |
| 219 // the network may have changed. Called e.g. when the proxy properties may |
| 220 // have changed. |
| 221 void SendUpdateNotificationForNetwork(const std::string& service_path); |
| 222 |
218 // Clears the last_error value for the NetworkState for |service_path|. | 223 // Clears the last_error value for the NetworkState for |service_path|. |
219 void ClearLastErrorForNetwork(const std::string& service_path); | 224 void ClearLastErrorForNetwork(const std::string& service_path); |
220 | 225 |
221 // Sets the list of devices on which portal check is enabled. | 226 // Sets the list of devices on which portal check is enabled. |
222 void SetCheckPortalList(const std::string& check_portal_list); | 227 void SetCheckPortalList(const std::string& check_portal_list); |
223 | 228 |
224 // Sets the Manager.WakeOnLan property. Note: we do not track this state, we | 229 // Sets the Manager.WakeOnLan property. Note: we do not track this state, we |
225 // only set it. | 230 // only set it. |
226 void SetWakeOnLanEnabled(bool enabled); | 231 void SetWakeOnLanEnabled(bool enabled); |
227 | 232 |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 | 414 |
410 // Ensure that Shutdown() gets called exactly once. | 415 // Ensure that Shutdown() gets called exactly once. |
411 bool did_shutdown_ = false; | 416 bool did_shutdown_ = false; |
412 | 417 |
413 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 418 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
414 }; | 419 }; |
415 | 420 |
416 } // namespace chromeos | 421 } // namespace chromeos |
417 | 422 |
418 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 423 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
OLD | NEW |