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

Side by Side Diff: chromeos/dbus/shill_manager_client.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 virtual void VerifyAndEncryptData(const VerificationProperties& properties, 217 virtual void VerifyAndEncryptData(const VerificationProperties& properties,
218 const std::string& data, 218 const std::string& data,
219 const StringCallback& callback, 219 const StringCallback& callback,
220 const ErrorCallback& error_callback) = 0; 220 const ErrorCallback& error_callback) = 0;
221 221
222 // For each technology present, connects to the "best" service available. 222 // For each technology present, connects to the "best" service available.
223 // Called once the user is logged in and certificates are loaded. 223 // Called once the user is logged in and certificates are loaded.
224 virtual void ConnectToBestServices(const base::Closure& callback, 224 virtual void ConnectToBestServices(const base::Closure& callback,
225 const ErrorCallback& error_callback) = 0; 225 const ErrorCallback& error_callback) = 0;
226 226
227 virtual void SetNetworkThrottlingStatus(
Andrew T Wilson (Slow) 2016/10/21 13:27:30 Add comment/documentation about how to use this.
stevenjb 2016/10/21 19:41:21 +1. Please document all 3 args.
kirtika1 2016/10/23 00:04:49 Done.
228 bool enabled,
229 uint32_t upload_rate_kbits,
230 uint32_t download_rate_kbits,
231 const base::Closure& callback,
232 const ErrorCallback& error_callback) = 0;
233
227 // Returns an interface for testing (stub only), or returns NULL. 234 // Returns an interface for testing (stub only), or returns NULL.
228 virtual TestInterface* GetTestInterface() = 0; 235 virtual TestInterface* GetTestInterface() = 0;
229 236
230 protected: 237 protected:
231 friend class ShillManagerClientTest; 238 friend class ShillManagerClientTest;
232 239
233 // Create() should be used instead. 240 // Create() should be used instead.
234 ShillManagerClient(); 241 ShillManagerClient();
235 242
236 private: 243 private:
237 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient); 244 DISALLOW_COPY_AND_ASSIGN(ShillManagerClient);
238 }; 245 };
239 246
240 } // namespace chromeos 247 } // namespace chromeos
241 248
242 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_ 249 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698