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

Unified Diff: chromeos/network/shill_property_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/shill_property_handler.h
diff --git a/chromeos/network/shill_property_handler.h b/chromeos/network/shill_property_handler.h
index fd299b533185b3c12942225a5c9f05f949eed045..a5146342befb4a69e1358cc27c95964f92f0d5db 100644
--- a/chromeos/network/shill_property_handler.h
+++ b/chromeos/network/shill_property_handler.h
@@ -139,6 +139,14 @@ class CHROMEOS_EXPORT ShillPropertyHandler
// only set it.
void SetWakeOnLanEnabled(bool enabled);
+ // Calls shill to enable/disable network bandwidth throttling. If |enabled|
+ // is true, |upload_rate_kbits| and |download_rate_kbits| specify the rate
+ // in kbits/s to throttle to. If |enabled| is false, throttling is disabled
+ // and the rates are ignored.
+ void SetNetworkThrottlingStatus(bool enabled,
+ uint32_t upload_rate_kbits,
+ uint32_t download_rate_kbits);
+
// Requests an immediate network scan.
void RequestScan() const;

Powered by Google App Engine
This is Rietveld 408576698