Index: chromeos/network/network_state_handler.h |
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h |
index b752227708f59086e83ce3f4bef30dc7d7ac2689..7111114670322ff9f8a0aed6ed0f5dac2c5e09a5 100644 |
--- a/chromeos/network/network_state_handler.h |
+++ b/chromeos/network/network_state_handler.h |
@@ -225,6 +225,14 @@ class CHROMEOS_EXPORT NetworkStateHandler |
// only set it. |
void SetWakeOnLanEnabled(bool enabled); |
+ // Enable or disable network bandwidth throttling, on all interfaces on the |
+ // system. If |enabled| is true, |upload_rate_kbits| and |download_rate_kbits| |
+ // are the desired rates (in kbits/s) to throttle to. If |enabled| is false, |
+ // throttling is off, and the rates are ignored. |
+ void SetNetworkThrottlingStatus(bool enabled, |
+ uint32_t upload_rate_kbits, |
+ uint32_t download_rate_kbits); |
+ |
const std::string& GetCheckPortalListForTest() const { |
return check_portal_list_; |
} |