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

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

Issue 280023003: Implement networkingPrivate.getNetworks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 6 years, 7 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 | Annotate | Revision Log
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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 bool initializing) OVERRIDE; 89 bool initializing) OVERRIDE;
90 virtual void AddGeoNetwork(const std::string& technology, 90 virtual void AddGeoNetwork(const std::string& technology,
91 const base::DictionaryValue& network) OVERRIDE; 91 const base::DictionaryValue& network) OVERRIDE;
92 virtual void AddProfile(const std::string& profile_path) OVERRIDE; 92 virtual void AddProfile(const std::string& profile_path) OVERRIDE;
93 virtual void ClearProperties() OVERRIDE; 93 virtual void ClearProperties() OVERRIDE;
94 virtual void SetManagerProperty(const std::string& key, 94 virtual void SetManagerProperty(const std::string& key,
95 const base::Value& value) OVERRIDE; 95 const base::Value& value) OVERRIDE;
96 virtual void AddManagerService(const std::string& service_path, 96 virtual void AddManagerService(const std::string& service_path,
97 bool add_to_visible_list, 97 bool add_to_visible_list,
98 bool add_to_watch_list) OVERRIDE; 98 bool add_to_watch_list) OVERRIDE;
99 virtual void RemoveManagerService(const std::string& service_path) OVERRIDE; 99 virtual void RemoveManagerService(const std::string& service_path,
100 bool remove_from_complete_list) OVERRIDE;
100 virtual void ClearManagerServices() OVERRIDE; 101 virtual void ClearManagerServices() OVERRIDE;
101 virtual void ServiceStateChanged(const std::string& service_path, 102 virtual void ServiceStateChanged(const std::string& service_path,
102 const std::string& state) OVERRIDE; 103 const std::string& state) OVERRIDE;
103 virtual void SortManagerServices() OVERRIDE; 104 virtual void SortManagerServices() OVERRIDE;
104 virtual void SetupDefaultEnvironment() OVERRIDE; 105 virtual void SetupDefaultEnvironment() OVERRIDE;
105 virtual int GetInteractiveDelay() const OVERRIDE; 106 virtual int GetInteractiveDelay() const OVERRIDE;
106 107
107 private: 108 private:
109 // |property| should be kServicesProperty or kServiceCompleteListProperty.
110 void SortServiceList(const std::string& property);
111
108 void AddServiceToWatchList(const std::string& service_path); 112 void AddServiceToWatchList(const std::string& service_path);
109 void SetDefaultProperties(); 113 void SetDefaultProperties();
110 void PassStubProperties(const DictionaryValueCallback& callback) const; 114 void PassStubProperties(const DictionaryValueCallback& callback) const;
111 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; 115 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const;
112 void CallNotifyObserversPropertyChanged(const std::string& property); 116 void CallNotifyObserversPropertyChanged(const std::string& property);
113 void NotifyObserversPropertyChanged(const std::string& property); 117 void NotifyObserversPropertyChanged(const std::string& property);
114 base::ListValue* GetListProperty(const std::string& property); 118 base::ListValue* GetListProperty(const std::string& property);
115 bool TechnologyEnabled(const std::string& type) const; 119 bool TechnologyEnabled(const std::string& type) const;
116 void SetTechnologyEnabled(const std::string& type, 120 void SetTechnologyEnabled(const std::string& type,
117 const base::Closure& callback, 121 const base::Closure& callback,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 154
151 // Track the default service for signaling Manager.DefaultService. 155 // Track the default service for signaling Manager.DefaultService.
152 std::string default_service_; 156 std::string default_service_;
153 157
154 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); 158 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient);
155 }; 159 };
156 160
157 } // namespace chromeos 161 } // namespace chromeos
158 162
159 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ 163 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698