OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chromeos/dbus/shill_ipconfig_client.h" | 5 #include "chromeos/dbus/shill_ipconfig_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 const DictionaryValueCallback& callback) OVERRIDE; | 44 const DictionaryValueCallback& callback) OVERRIDE; |
45 virtual void SetProperty(const dbus::ObjectPath& ipconfig_path, | 45 virtual void SetProperty(const dbus::ObjectPath& ipconfig_path, |
46 const std::string& name, | 46 const std::string& name, |
47 const base::Value& value, | 47 const base::Value& value, |
48 const VoidDBusMethodCallback& callback) OVERRIDE; | 48 const VoidDBusMethodCallback& callback) OVERRIDE; |
49 virtual void ClearProperty(const dbus::ObjectPath& ipconfig_path, | 49 virtual void ClearProperty(const dbus::ObjectPath& ipconfig_path, |
50 const std::string& name, | 50 const std::string& name, |
51 const VoidDBusMethodCallback& callback) OVERRIDE; | 51 const VoidDBusMethodCallback& callback) OVERRIDE; |
52 virtual void Remove(const dbus::ObjectPath& ipconfig_path, | 52 virtual void Remove(const dbus::ObjectPath& ipconfig_path, |
53 const VoidDBusMethodCallback& callback) OVERRIDE; | 53 const VoidDBusMethodCallback& callback) OVERRIDE; |
| 54 virtual ShillIPConfigClient::TestInterface* GetTestInterface() OVERRIDE; |
54 | 55 |
55 protected: | 56 protected: |
56 virtual void Init(dbus::Bus* bus) OVERRIDE { | 57 virtual void Init(dbus::Bus* bus) OVERRIDE { |
57 bus_ = bus; | 58 bus_ = bus; |
58 } | 59 } |
59 | 60 |
60 private: | 61 private: |
61 typedef std::map<std::string, ShillClientHelper*> HelperMap; | 62 typedef std::map<std::string, ShillClientHelper*> HelperMap; |
62 | 63 |
63 // Returns the corresponding ShillClientHelper for the profile. | 64 // Returns the corresponding ShillClientHelper for the profile. |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 } | 158 } |
158 | 159 |
159 void ShillIPConfigClientImpl::Remove( | 160 void ShillIPConfigClientImpl::Remove( |
160 const dbus::ObjectPath& ipconfig_path, | 161 const dbus::ObjectPath& ipconfig_path, |
161 const VoidDBusMethodCallback& callback) { | 162 const VoidDBusMethodCallback& callback) { |
162 dbus::MethodCall method_call(shill::kFlimflamIPConfigInterface, | 163 dbus::MethodCall method_call(shill::kFlimflamIPConfigInterface, |
163 shill::kRemoveConfigFunction); | 164 shill::kRemoveConfigFunction); |
164 GetHelper(ipconfig_path)->CallVoidMethod(&method_call, callback); | 165 GetHelper(ipconfig_path)->CallVoidMethod(&method_call, callback); |
165 } | 166 } |
166 | 167 |
| 168 ShillIPConfigClient::TestInterface* |
| 169 ShillIPConfigClientImpl::GetTestInterface() { |
| 170 return NULL; |
| 171 } |
| 172 |
167 } // namespace | 173 } // namespace |
168 | 174 |
169 ShillIPConfigClient::ShillIPConfigClient() {} | 175 ShillIPConfigClient::ShillIPConfigClient() {} |
170 | 176 |
171 ShillIPConfigClient::~ShillIPConfigClient() {} | 177 ShillIPConfigClient::~ShillIPConfigClient() {} |
172 | 178 |
173 // static | 179 // static |
174 ShillIPConfigClient* ShillIPConfigClient::Create() { | 180 ShillIPConfigClient* ShillIPConfigClient::Create() { |
175 return new ShillIPConfigClientImpl(); | 181 return new ShillIPConfigClientImpl(); |
176 } | 182 } |
177 | 183 |
178 } // namespace chromeos | 184 } // namespace chromeos |
OLD | NEW |