Chromium Code Reviews| 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 // Inform NetworkStateHandler to notify observers that the properties for | |
|
michaelpg
2016/11/02 23:55:25
nit: Informs
stevenjb
2016/11/03 17:48:56
Done.
| |
| 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 401 | 406 |
| 402 // Ensure that Shutdown() gets called exactly once. | 407 // Ensure that Shutdown() gets called exactly once. |
| 403 bool did_shutdown_ = false; | 408 bool did_shutdown_ = false; |
| 404 | 409 |
| 405 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 410 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
| 406 }; | 411 }; |
| 407 | 412 |
| 408 } // namespace chromeos | 413 } // namespace chromeos |
| 409 | 414 |
| 410 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 415 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
| OLD | NEW |