OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_SHILL_MANAGER_CLIENT_STUB_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ |
6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ | 6 #define CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual void ClearDevices() OVERRIDE; | 87 virtual void ClearDevices() OVERRIDE; |
88 virtual void ClearServices() OVERRIDE; | 88 virtual void ClearServices() OVERRIDE; |
89 virtual void AddService(const std::string& service_path, | 89 virtual void AddService(const std::string& service_path, |
90 bool add_to_watch_list) OVERRIDE; | 90 bool add_to_watch_list) OVERRIDE; |
91 virtual void AddServiceAtIndex(const std::string& service_path, | 91 virtual void AddServiceAtIndex(const std::string& service_path, |
92 size_t index, | 92 size_t index, |
93 bool add_to_watch_list) OVERRIDE; | 93 bool add_to_watch_list) OVERRIDE; |
94 virtual void RemoveService(const std::string& service_path) OVERRIDE; | 94 virtual void RemoveService(const std::string& service_path) OVERRIDE; |
95 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; | 95 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; |
96 virtual void RemoveTechnology(const std::string& type) OVERRIDE; | 96 virtual void RemoveTechnology(const std::string& type) OVERRIDE; |
97 virtual void ClearProperties() OVERRIDE; | |
98 virtual void AddGeoNetwork(const std::string& technology, | 97 virtual void AddGeoNetwork(const std::string& technology, |
99 const base::DictionaryValue& network) OVERRIDE; | 98 const base::DictionaryValue& network) OVERRIDE; |
| 99 virtual void ClearProperties() OVERRIDE; |
100 | 100 |
101 private: | 101 private: |
102 void AddServiceToWatchList(const std::string& service_path); | 102 void AddServiceToWatchList(const std::string& service_path); |
103 void SetDefaultProperties(); | 103 void SetDefaultProperties(); |
104 void PassStubProperties(const DictionaryValueCallback& callback) const; | 104 void PassStubProperties(const DictionaryValueCallback& callback) const; |
105 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; | 105 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; |
106 void CallNotifyObserversPropertyChanged(const std::string& property, | 106 void CallNotifyObserversPropertyChanged(const std::string& property, |
107 int delay_ms); | 107 int delay_ms); |
108 void NotifyObserversPropertyChanged(const std::string& property); | 108 void NotifyObserversPropertyChanged(const std::string& property); |
109 base::ListValue* GetListProperty(const std::string& property); | 109 base::ListValue* GetListProperty(const std::string& property); |
(...skipping 10 matching lines...) Expand all Loading... |
120 // Note: This should remain the last member so it'll be destroyed and | 120 // Note: This should remain the last member so it'll be destroyed and |
121 // invalidate its weak pointers before any other members are destroyed. | 121 // invalidate its weak pointers before any other members are destroyed. |
122 base::WeakPtrFactory<ShillManagerClientStub> weak_ptr_factory_; | 122 base::WeakPtrFactory<ShillManagerClientStub> weak_ptr_factory_; |
123 | 123 |
124 DISALLOW_COPY_AND_ASSIGN(ShillManagerClientStub); | 124 DISALLOW_COPY_AND_ASSIGN(ShillManagerClientStub); |
125 }; | 125 }; |
126 | 126 |
127 } // namespace chromeos | 127 } // namespace chromeos |
128 | 128 |
129 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ | 129 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ |
OLD | NEW |