| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 virtual void ClearDevices() OVERRIDE; | 91 virtual void ClearDevices() OVERRIDE; |
| 92 virtual void ClearServices() OVERRIDE; | 92 virtual void ClearServices() OVERRIDE; |
| 93 virtual void AddService(const std::string& service_path, | 93 virtual void AddService(const std::string& service_path, |
| 94 bool add_to_watch_list) OVERRIDE; | 94 bool add_to_watch_list) OVERRIDE; |
| 95 virtual void AddServiceAtIndex(const std::string& service_path, | 95 virtual void AddServiceAtIndex(const std::string& service_path, |
| 96 size_t index, | 96 size_t index, |
| 97 bool add_to_watch_list) OVERRIDE; | 97 bool add_to_watch_list) OVERRIDE; |
| 98 virtual void RemoveService(const std::string& service_path) OVERRIDE; | 98 virtual void RemoveService(const std::string& service_path) OVERRIDE; |
| 99 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; | 99 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; |
| 100 virtual void RemoveTechnology(const std::string& type) OVERRIDE; | 100 virtual void RemoveTechnology(const std::string& type) OVERRIDE; |
| 101 virtual void SetTechnologyInitializing(const std::string& type, |
| 102 bool initializing) OVERRIDE; |
| 101 virtual void AddGeoNetwork(const std::string& technology, | 103 virtual void AddGeoNetwork(const std::string& technology, |
| 102 const base::DictionaryValue& network) OVERRIDE; | 104 const base::DictionaryValue& network) OVERRIDE; |
| 103 virtual void ClearProperties() OVERRIDE; | 105 virtual void ClearProperties() OVERRIDE; |
| 104 | 106 |
| 105 private: | 107 private: |
| 106 void AddServiceToWatchList(const std::string& service_path); | 108 void AddServiceToWatchList(const std::string& service_path); |
| 107 void SetDefaultProperties(); | 109 void SetDefaultProperties(); |
| 108 void PassStubProperties(const DictionaryValueCallback& callback) const; | 110 void PassStubProperties(const DictionaryValueCallback& callback) const; |
| 109 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; | 111 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; |
| 110 void CallNotifyObserversPropertyChanged(const std::string& property, | 112 void CallNotifyObserversPropertyChanged(const std::string& property, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 129 // Note: This should remain the last member so it'll be destroyed and | 131 // Note: This should remain the last member so it'll be destroyed and |
| 130 // invalidate its weak pointers before any other members are destroyed. | 132 // invalidate its weak pointers before any other members are destroyed. |
| 131 base::WeakPtrFactory<ShillManagerClientStub> weak_ptr_factory_; | 133 base::WeakPtrFactory<ShillManagerClientStub> weak_ptr_factory_; |
| 132 | 134 |
| 133 DISALLOW_COPY_AND_ASSIGN(ShillManagerClientStub); | 135 DISALLOW_COPY_AND_ASSIGN(ShillManagerClientStub); |
| 134 }; | 136 }; |
| 135 | 137 |
| 136 } // namespace chromeos | 138 } // namespace chromeos |
| 137 | 139 |
| 138 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ | 140 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ |
| OLD | NEW |