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_SERVICE_CLIENT_STUB_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_ |
6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_ | 6 #define CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const dbus::ObjectPath& service_path, | 66 const dbus::ObjectPath& service_path, |
67 const std::string& carrier) OVERRIDE; | 67 const std::string& carrier) OVERRIDE; |
68 virtual ShillServiceClient::TestInterface* GetTestInterface() OVERRIDE; | 68 virtual ShillServiceClient::TestInterface* GetTestInterface() OVERRIDE; |
69 | 69 |
70 // ShillServiceClient::TestInterface overrides. | 70 // ShillServiceClient::TestInterface overrides. |
71 virtual void AddService(const std::string& service_path, | 71 virtual void AddService(const std::string& service_path, |
72 const std::string& name, | 72 const std::string& name, |
73 const std::string& type, | 73 const std::string& type, |
74 const std::string& state, | 74 const std::string& state, |
75 bool add_to_watch_list) OVERRIDE; | 75 bool add_to_watch_list) OVERRIDE; |
| 76 virtual void AddServiceWithIPConfig(const std::string& service_path, |
| 77 const std::string& name, |
| 78 const std::string& type, |
| 79 const std::string& state, |
| 80 const std::string& ipconfig_path, |
| 81 bool add_to_watch_list) OVERRIDE; |
76 virtual void RemoveService(const std::string& service_path) OVERRIDE; | 82 virtual void RemoveService(const std::string& service_path) OVERRIDE; |
77 virtual void SetServiceProperty(const std::string& service_path, | 83 virtual void SetServiceProperty(const std::string& service_path, |
78 const std::string& property, | 84 const std::string& property, |
79 const base::Value& value) OVERRIDE; | 85 const base::Value& value) OVERRIDE; |
80 virtual const base::DictionaryValue* GetServiceProperties( | 86 virtual const base::DictionaryValue* GetServiceProperties( |
81 const std::string& service_path) const OVERRIDE; | 87 const std::string& service_path) const OVERRIDE; |
82 virtual void ClearServices() OVERRIDE; | 88 virtual void ClearServices() OVERRIDE; |
83 | 89 |
84 private: | 90 private: |
85 typedef ObserverList<ShillPropertyChangedObserver> PropertyObserverList; | 91 typedef ObserverList<ShillPropertyChangedObserver> PropertyObserverList; |
(...skipping 14 matching lines...) Expand all Loading... |
100 // Note: This should remain the last member so it'll be destroyed and | 106 // Note: This should remain the last member so it'll be destroyed and |
101 // invalidate its weak pointers before any other members are destroyed. | 107 // invalidate its weak pointers before any other members are destroyed. |
102 base::WeakPtrFactory<ShillServiceClientStub> weak_ptr_factory_; | 108 base::WeakPtrFactory<ShillServiceClientStub> weak_ptr_factory_; |
103 | 109 |
104 DISALLOW_COPY_AND_ASSIGN(ShillServiceClientStub); | 110 DISALLOW_COPY_AND_ASSIGN(ShillServiceClientStub); |
105 }; | 111 }; |
106 | 112 |
107 } // namespace chromeos | 113 } // namespace chromeos |
108 | 114 |
109 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_ | 115 #endif // CHROMEOS_DBUS_SHILL_SERVICE_CLIENT_STUB_H_ |
OLD | NEW |