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

Side by Side Diff: chromeos/dbus/fake_shill_manager_client.h

Issue 2463023002: Revert of Add network throttling as an enterprise policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted by hand 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 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 <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void AddManagerService(const std::string& service_path, 94 void AddManagerService(const std::string& service_path,
95 bool notify_observers) override; 95 bool notify_observers) override;
96 void RemoveManagerService(const std::string& service_path) override; 96 void RemoveManagerService(const std::string& service_path) override;
97 void ClearManagerServices() override; 97 void ClearManagerServices() override;
98 void ServiceStateChanged(const std::string& service_path, 98 void ServiceStateChanged(const std::string& service_path,
99 const std::string& state) override; 99 const std::string& state) override;
100 void SortManagerServices(bool notify) override; 100 void SortManagerServices(bool notify) override;
101 void SetupDefaultEnvironment() override; 101 void SetupDefaultEnvironment() override;
102 int GetInteractiveDelay() const override; 102 int GetInteractiveDelay() const override;
103 void SetBestServiceToConnect(const std::string& service_path) override; 103 void SetBestServiceToConnect(const std::string& service_path) override;
104 void SetNetworkThrottlingStatus(bool enabled,
105 uint32_t upload_rate_kbits,
106 uint32_t download_rate_kbits,
107 const base::Closure& callback,
108 const ErrorCallback& error_callback) override;
109 104
110 // Constants used for testing. 105 // Constants used for testing.
111 static const char kFakeEthernetNetworkGuid[]; 106 static const char kFakeEthernetNetworkGuid[];
112 107
113 private: 108 private:
114 void SetDefaultProperties(); 109 void SetDefaultProperties();
115 void PassStubProperties(const DictionaryValueCallback& callback) const; 110 void PassStubProperties(const DictionaryValueCallback& callback) const;
116 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; 111 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const;
117 void CallNotifyObserversPropertyChanged(const std::string& property); 112 void CallNotifyObserversPropertyChanged(const std::string& property);
118 void NotifyObserversPropertyChanged(const std::string& property); 113 void NotifyObserversPropertyChanged(const std::string& property);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Note: This should remain the last member so it'll be destroyed and 164 // Note: This should remain the last member so it'll be destroyed and
170 // invalidate its weak pointers before any other members are destroyed. 165 // invalidate its weak pointers before any other members are destroyed.
171 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; 166 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_;
172 167
173 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); 168 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient);
174 }; 169 };
175 170
176 } // namespace chromeos 171 } // namespace chromeos
177 172
178 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 173 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/test/data/policy/policy_test_cases.json ('k') | chromeos/dbus/fake_shill_manager_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698