| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 private: | 105 private: |
| 106 void AddServiceToWatchList(const std::string& service_path); | 106 void AddServiceToWatchList(const std::string& service_path); |
| 107 void SetDefaultProperties(); | 107 void SetDefaultProperties(); |
| 108 void PassStubProperties(const DictionaryValueCallback& callback) const; | 108 void PassStubProperties(const DictionaryValueCallback& callback) const; |
| 109 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; | 109 void PassStubGeoNetworks(const DictionaryValueCallback& callback) const; |
| 110 void CallNotifyObserversPropertyChanged(const std::string& property, | 110 void CallNotifyObserversPropertyChanged(const std::string& property, |
| 111 int delay_ms); | 111 int delay_ms); |
| 112 void NotifyObserversPropertyChanged(const std::string& property); | 112 void NotifyObserversPropertyChanged(const std::string& property); |
| 113 base::ListValue* GetListProperty(const std::string& property); | 113 base::ListValue* GetListProperty(const std::string& property); |
| 114 bool TechnologyEnabled(const std::string& type) const; | 114 bool TechnologyEnabled(const std::string& type) const; |
| 115 void SetTechnologyEnabled(const std::string& type, |
| 116 const base::Closure& callback, |
| 117 bool enabled); |
| 115 base::ListValue* GetEnabledServiceList(const std::string& property) const; | 118 base::ListValue* GetEnabledServiceList(const std::string& property) const; |
| 116 void ScanCompleted(const std::string& device_path, | 119 void ScanCompleted(const std::string& device_path, |
| 117 const base::Closure& callback); | 120 const base::Closure& callback); |
| 118 | 121 |
| 119 // Dictionary of property name -> property value | 122 // Dictionary of property name -> property value |
| 120 base::DictionaryValue stub_properties_; | 123 base::DictionaryValue stub_properties_; |
| 121 // Dictionary of technology -> list of property dictionaries | 124 // Dictionary of technology -> list of property dictionaries |
| 122 base::DictionaryValue stub_geo_networks_; | 125 base::DictionaryValue stub_geo_networks_; |
| 123 | 126 |
| 124 ObserverList<ShillPropertyChangedObserver> observer_list_; | 127 ObserverList<ShillPropertyChangedObserver> observer_list_; |
| 125 | 128 |
| 126 // Note: This should remain the last member so it'll be destroyed and | 129 // Note: This should remain the last member so it'll be destroyed and |
| 127 // invalidate its weak pointers before any other members are destroyed. | 130 // invalidate its weak pointers before any other members are destroyed. |
| 128 base::WeakPtrFactory<ShillManagerClientStub> weak_ptr_factory_; | 131 base::WeakPtrFactory<ShillManagerClientStub> weak_ptr_factory_; |
| 129 | 132 |
| 130 DISALLOW_COPY_AND_ASSIGN(ShillManagerClientStub); | 133 DISALLOW_COPY_AND_ASSIGN(ShillManagerClientStub); |
| 131 }; | 134 }; |
| 132 | 135 |
| 133 } // namespace chromeos | 136 } // namespace chromeos |
| 134 | 137 |
| 135 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ | 138 #endif // CHROMEOS_DBUS_SHILL_MANAGER_CLIENT_STUB_H_ |
| OLD | NEW |