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

Side by Side Diff: chromeos/dbus/fake_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 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;
104 109
105 // Constants used for testing. 110 // Constants used for testing.
106 static const char kFakeEthernetNetworkGuid[]; 111 static const char kFakeEthernetNetworkGuid[];
107 112
108 private: 113 private:
109 void SetDefaultProperties(); 114 void SetDefaultProperties();
110 void PassStubProperties(const DictionaryValueCallback& callback) const; 115 void PassStubProperties(const DictionaryValueCallback& callback) const;
111 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; 116 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const;
112 void CallNotifyObserversPropertyChanged(const std::string& property); 117 void CallNotifyObserversPropertyChanged(const std::string& property);
113 void NotifyObserversPropertyChanged(const std::string& property); 118 void NotifyObserversPropertyChanged(const std::string& property);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Note: This should remain the last member so it'll be destroyed and 169 // Note: This should remain the last member so it'll be destroyed and
165 // invalidate its weak pointers before any other members are destroyed. 170 // invalidate its weak pointers before any other members are destroyed.
166 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; 171 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_;
167 172
168 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); 173 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient);
169 }; 174 };
170 175
171 } // namespace chromeos 176 } // namespace chromeos
172 177
173 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 178 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698