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

Unified Diff: chromeos/network/shill_property_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/shill_property_handler.h
diff --git a/chromeos/network/shill_property_handler.h b/chromeos/network/shill_property_handler.h
index fd299b533185b3c12942225a5c9f05f949eed045..8d7e63ebeddc5d4303b904cddb10a68da0393bef 100644
--- a/chromeos/network/shill_property_handler.h
+++ b/chromeos/network/shill_property_handler.h
@@ -7,6 +7,7 @@
#include <list>
#include <map>
+#include <memory>
#include <set>
#include <string>
#include <vector>
@@ -139,6 +140,12 @@ class CHROMEOS_EXPORT ShillPropertyHandler
// only set it.
void SetWakeOnLanEnabled(bool enabled);
+ // Wrapper over ShillManagerClient's SetNetworkThrottlingStatus
+ // We do not track/observe this, only set it.
+ 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