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

Unified Diff: chromeos/dbus/shill_manager_client.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/dbus/shill_manager_client.h
diff --git a/chromeos/dbus/shill_manager_client.h b/chromeos/dbus/shill_manager_client.h
index 02f84de38f8e0bc4b572d992a6d0ad934590622e..abe5135904704596da2e1dfc80de22b661c71e4d 100644
--- a/chromeos/dbus/shill_manager_client.h
+++ b/chromeos/dbus/shill_manager_client.h
@@ -224,6 +224,17 @@ class CHROMEOS_EXPORT ShillManagerClient : public DBusClient {
virtual void ConnectToBestServices(const base::Closure& callback,
const ErrorCallback& error_callback) = 0;
+ // 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.
+ virtual void SetNetworkThrottlingStatus(
+ bool enabled,
+ uint32_t upload_rate_kbits,
+ uint32_t download_rate_kbits,
+ const base::Closure& callback,
+ const ErrorCallback& error_callback) = 0;
+
// Returns an interface for testing (stub only), or returns NULL.
virtual TestInterface* GetTestInterface() = 0;

Powered by Google App Engine
This is Rietveld 408576698