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

Side by Side Diff: chromeos/dbus/fake_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FAKE_SHILL_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
7 7
8 #include <map>
8 #include <string> 9 #include <string>
9 10
10 #include "base/callback.h" 11 #include "base/callback.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "chromeos/chromeos_export.h" 13 #include "chromeos/chromeos_export.h"
13 #include "chromeos/dbus/shill_manager_client.h" 14 #include "chromeos/dbus/shill_manager_client.h"
14 15
15 namespace net { 16 namespace net {
16 class IPEndPoint; 17 class IPEndPoint;
17 } 18 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void AddManagerService(const std::string& service_path, 95 void AddManagerService(const std::string& service_path,
95 bool notify_observers) override; 96 bool notify_observers) override;
96 void RemoveManagerService(const std::string& service_path) override; 97 void RemoveManagerService(const std::string& service_path) override;
97 void ClearManagerServices() override; 98 void ClearManagerServices() override;
98 void ServiceStateChanged(const std::string& service_path, 99 void ServiceStateChanged(const std::string& service_path,
99 const std::string& state) override; 100 const std::string& state) override;
100 void SortManagerServices(bool notify) override; 101 void SortManagerServices(bool notify) override;
101 void SetupDefaultEnvironment() override; 102 void SetupDefaultEnvironment() override;
102 int GetInteractiveDelay() const override; 103 int GetInteractiveDelay() const override;
103 void SetBestServiceToConnect(const std::string& service_path) override; 104 void SetBestServiceToConnect(const std::string& service_path) override;
104 105
stevenjb 2016/10/21 19:41:20 elim blank line
106 void SetNetworkThrottlingStatus(
107 bool enabled,
108 uint32_t upload_rate_kbits,
109 uint32_t download_rate_kbits,
110 const base::Closure& callback,
111 const ErrorCallback& error_callback) override {}
stevenjb 2016/10/21 19:41:21 Don't provide a default implementation in the head
kirtika1 2016/10/23 00:04:49 Done.
112
105 // Constants used for testing. 113 // Constants used for testing.
106 static const char kFakeEthernetNetworkGuid[]; 114 static const char kFakeEthernetNetworkGuid[];
107 115
108 private: 116 private:
109 void SetDefaultProperties(); 117 void SetDefaultProperties();
110 void PassStubProperties(const DictionaryValueCallback& callback) const; 118 void PassStubProperties(const DictionaryValueCallback& callback) const;
111 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; 119 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const;
112 void CallNotifyObserversPropertyChanged(const std::string& property); 120 void CallNotifyObserversPropertyChanged(const std::string& property);
113 void NotifyObserversPropertyChanged(const std::string& property); 121 void NotifyObserversPropertyChanged(const std::string& property);
114 base::ListValue* GetListProperty(const std::string& property); 122 base::ListValue* GetListProperty(const std::string& property);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Note: This should remain the last member so it'll be destroyed and 172 // Note: This should remain the last member so it'll be destroyed and
165 // invalidate its weak pointers before any other members are destroyed. 173 // invalidate its weak pointers before any other members are destroyed.
166 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; 174 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_;
167 175
168 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); 176 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient);
169 }; 177 };
170 178
171 } // namespace chromeos 179 } // namespace chromeos
172 180
173 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 181 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698