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

Unified Diff: chromeos/network/network_state_handler.h

Issue 2364703002: Add network throttling as an enterprise policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add network bandwidth throttling as an enterprise policy Created 4 years, 2 months 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 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_;
}

Powered by Google App Engine
This is Rietveld 408576698