Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Unified Diff: chromeos/network/network_state_handler.h

Issue 2466693002: [Re-land] Add network throttling as enterprise policy (Closed)
Patch Set: [Re-land] Add network throttling as enterprise policy Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chromeos/network/network_state_handler.h
diff --git a/chromeos/network/network_state_handler.h b/chromeos/network/network_state_handler.h
index c3df34455630b05ede7cb0379c2c455d537c9597..62b375838f817fea939c5146f4055deca632be98 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_;
}

Powered by Google App Engine
This is Rietveld 408576698