| 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_IPCONFIG_CLIENT_STUB_H_ | 5 #ifndef CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_ |
| 6 #define CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_ | 6 #define CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 const std::string& name, | 35 const std::string& name, |
| 36 const base::Value& value, | 36 const base::Value& value, |
| 37 const VoidDBusMethodCallback& callback) OVERRIDE; | 37 const VoidDBusMethodCallback& callback) OVERRIDE; |
| 38 virtual void ClearProperty(const dbus::ObjectPath& ipconfig_path, | 38 virtual void ClearProperty(const dbus::ObjectPath& ipconfig_path, |
| 39 const std::string& name, | 39 const std::string& name, |
| 40 const VoidDBusMethodCallback& callback) OVERRIDE; | 40 const VoidDBusMethodCallback& callback) OVERRIDE; |
| 41 virtual void Remove(const dbus::ObjectPath& ipconfig_path, | 41 virtual void Remove(const dbus::ObjectPath& ipconfig_path, |
| 42 const VoidDBusMethodCallback& callback) OVERRIDE; | 42 const VoidDBusMethodCallback& callback) OVERRIDE; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 // Runs callback with |properties_|. | 45 // Runs callback with |values|. |
| 46 void PassProperties(const DictionaryValueCallback& callback) const; | 46 void PassProperties(const base::DictionaryValue* values, |
| 47 const DictionaryValueCallback& callback) const; |
| 47 | 48 |
| 48 base::DictionaryValue properties_; | 49 // Dictionary of <ipconfig_path, property dictionaries> |
| 50 base::DictionaryValue ipconfigs_; |
| 49 | 51 |
| 50 // Note: This should remain the last member so it'll be destroyed and | 52 // Note: This should remain the last member so it'll be destroyed and |
| 51 // invalidate its weak pointers before any other members are destroyed. | 53 // invalidate its weak pointers before any other members are destroyed. |
| 52 base::WeakPtrFactory<ShillIPConfigClientStub> weak_ptr_factory_; | 54 base::WeakPtrFactory<ShillIPConfigClientStub> weak_ptr_factory_; |
| 53 | 55 |
| 54 DISALLOW_COPY_AND_ASSIGN(ShillIPConfigClientStub); | 56 DISALLOW_COPY_AND_ASSIGN(ShillIPConfigClientStub); |
| 55 }; | 57 }; |
| 56 | 58 |
| 57 } // namespace chromeos | 59 } // namespace chromeos |
| 58 | 60 |
| 59 #endif // CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_ | 61 #endif // CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_STUB_H_ |
| OLD | NEW |