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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
218 // Clears the last_error value for the NetworkState for |service_path|. | 218 // Clears the last_error value for the NetworkState for |service_path|. |
219 void ClearLastErrorForNetwork(const std::string& service_path); | 219 void ClearLastErrorForNetwork(const std::string& service_path); |
220 | 220 |
221 // Sets the list of devices on which portal check is enabled. | 221 // Sets the list of devices on which portal check is enabled. |
222 void SetCheckPortalList(const std::string& check_portal_list); | 222 void SetCheckPortalList(const std::string& check_portal_list); |
223 | 223 |
224 // Sets the Manager.WakeOnLan property. Note: we do not track this state, we | 224 // Sets the Manager.WakeOnLan property. Note: we do not track this state, we |
225 // only set it. | 225 // only set it. |
226 void SetWakeOnLanEnabled(bool enabled); | 226 void SetWakeOnLanEnabled(bool enabled); |
227 | 227 |
228 void SetNetworkThrottlingStatus(bool enabled, | |
229 uint32_t upload_rate_kbits, | |
230 uint32_t download_rate_kbits); | |
stevenjb
2016/10/21 19:41:21
Document, including args. Even though this happens
| |
231 | |
228 const std::string& GetCheckPortalListForTest() const { | 232 const std::string& GetCheckPortalListForTest() const { |
229 return check_portal_list_; | 233 return check_portal_list_; |
230 } | 234 } |
231 | 235 |
232 // Returns the NetworkState of the EthernetEAP service, which contains the | 236 // Returns the NetworkState of the EthernetEAP service, which contains the |
233 // EAP parameters used by the ethernet with |service_path|. If |service_path| | 237 // EAP parameters used by the ethernet with |service_path|. If |service_path| |
234 // doesn't refer to an ethernet service or if the ethernet service is not | 238 // doesn't refer to an ethernet service or if the ethernet service is not |
235 // connected using EAP, returns NULL. | 239 // connected using EAP, returns NULL. |
236 const NetworkState* GetEAPForEthernet(const std::string& service_path); | 240 const NetworkState* GetEAPForEthernet(const std::string& service_path); |
237 | 241 |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
401 | 405 |
402 // Ensure that Shutdown() gets called exactly once. | 406 // Ensure that Shutdown() gets called exactly once. |
403 bool did_shutdown_ = false; | 407 bool did_shutdown_ = false; |
404 | 408 |
405 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); | 409 DISALLOW_COPY_AND_ASSIGN(NetworkStateHandler); |
406 }; | 410 }; |
407 | 411 |
408 } // namespace chromeos | 412 } // namespace chromeos |
409 | 413 |
410 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ | 414 #endif // CHROMEOS_NETWORK_NETWORK_STATE_HANDLER_H_ |
OLD | NEW |