| OLD | NEW |
| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual void RemoveDevice(const std::string& device_path) OVERRIDE; | 84 virtual void RemoveDevice(const std::string& device_path) OVERRIDE; |
| 85 virtual void ClearDevices() OVERRIDE; | 85 virtual void ClearDevices() OVERRIDE; |
| 86 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; | 86 virtual void AddTechnology(const std::string& type, bool enabled) OVERRIDE; |
| 87 virtual void RemoveTechnology(const std::string& type) OVERRIDE; | 87 virtual void RemoveTechnology(const std::string& type) OVERRIDE; |
| 88 virtual void SetTechnologyInitializing(const std::string& type, | 88 virtual void SetTechnologyInitializing(const std::string& type, |
| 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, |
| 95 const base::Value& value) OVERRIDE; |
| 94 virtual void AddManagerService(const std::string& service_path, | 96 virtual void AddManagerService(const std::string& service_path, |
| 95 bool add_to_visible_list, | 97 bool add_to_visible_list, |
| 96 bool add_to_watch_list) OVERRIDE; | 98 bool add_to_watch_list) OVERRIDE; |
| 97 virtual void RemoveManagerService(const std::string& service_path) OVERRIDE; | 99 virtual void RemoveManagerService(const std::string& service_path) OVERRIDE; |
| 98 virtual void ClearManagerServices() OVERRIDE; | 100 virtual void ClearManagerServices() OVERRIDE; |
| 99 virtual void SortManagerServices() OVERRIDE; | 101 virtual void SortManagerServices() OVERRIDE; |
| 100 | 102 |
| 101 private: | 103 private: |
| 102 void AddServiceToWatchList(const std::string& service_path); | 104 void AddServiceToWatchList(const std::string& service_path); |
| 103 void SetDefaultProperties(); | 105 void SetDefaultProperties(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 119 base::DictionaryValue stub_properties_; | 121 base::DictionaryValue stub_properties_; |
| 120 // Dictionary of technology -> list of property dictionaries | 122 // Dictionary of technology -> list of property dictionaries |
| 121 base::DictionaryValue stub_geo_networks_; | 123 base::DictionaryValue stub_geo_networks_; |
| 122 | 124 |
| 123 ObserverList<ShillPropertyChangedObserver> observer_list_; | 125 ObserverList<ShillPropertyChangedObserver> observer_list_; |
| 124 | 126 |
| 125 // Note: This should remain the last member so it'll be destroyed and | 127 // Note: This should remain the last member so it'll be destroyed and |
| 126 // invalidate its weak pointers before any other members are destroyed. | 128 // invalidate its weak pointers before any other members are destroyed. |
| 127 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; | 129 base::WeakPtrFactory<FakeShillManagerClient> weak_ptr_factory_; |
| 128 | 130 |
| 131 // Track the default service for signaling Manager.DefaultService. |
| 132 std::string default_service_; |
| 133 |
| 129 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); | 134 DISALLOW_COPY_AND_ASSIGN(FakeShillManagerClient); |
| 130 }; | 135 }; |
| 131 | 136 |
| 132 } // namespace chromeos | 137 } // namespace chromeos |
| 133 | 138 |
| 134 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ | 139 #endif // CHROMEOS_DBUS_FAKE_SHILL_MANAGER_CLIENT_H_ |
| OLD | NEW |