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 #ifndef CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_ |
6 #define CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_ | 6 #define CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 | 45 |
46 // Sets PropertyChanged signal handler. | 46 // Sets PropertyChanged signal handler. |
47 virtual void SetPropertyChangedHandler( | 47 virtual void SetPropertyChangedHandler( |
48 const dbus::ObjectPath& ipconfig_path, | 48 const dbus::ObjectPath& ipconfig_path, |
49 const PropertyChangedHandler& handler) = 0; | 49 const PropertyChangedHandler& handler) = 0; |
50 | 50 |
51 // Resets PropertyChanged signal handler. | 51 // Resets PropertyChanged signal handler. |
52 virtual void ResetPropertyChangedHandler( | 52 virtual void ResetPropertyChangedHandler( |
53 const dbus::ObjectPath& ipconfig_path) = 0; | 53 const dbus::ObjectPath& ipconfig_path) = 0; |
54 | 54 |
| 55 // Refreshes the active IP configuration after service property changes and |
| 56 // renews the DHCP lease, if any. |
| 57 virtual void Refresh(const dbus::ObjectPath& ipconfig_path, |
| 58 const VoidDBusMethodCallback& callback) = 0; |
| 59 |
55 // Calls GetProperties method. | 60 // Calls GetProperties method. |
56 // |callback| is called after the method call succeeds. | 61 // |callback| is called after the method call succeeds. |
57 virtual void GetProperties(const dbus::ObjectPath& ipconfig_path, | 62 virtual void GetProperties(const dbus::ObjectPath& ipconfig_path, |
58 const DictionaryValueCallback& callback) = 0; | 63 const DictionaryValueCallback& callback) = 0; |
59 | 64 |
60 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the | 65 // DEPRECATED DO NOT USE: Calls GetProperties method and blocks until the |
61 // method call finishes. The caller is responsible to delete the result. | 66 // method call finishes. The caller is responsible to delete the result. |
62 // Thie method returns NULL when method call fails. | 67 // Thie method returns NULL when method call fails. |
63 // | 68 // |
64 // TODO(hashimoto): Refactor CrosListIPConfigs to remove this method. | 69 // TODO(hashimoto): Refactor CrosListIPConfigs to remove this method. |
(...skipping 30 matching lines...) Expand all Loading... |
95 // Create() should be used instead. | 100 // Create() should be used instead. |
96 FlimflamIPConfigClient(); | 101 FlimflamIPConfigClient(); |
97 | 102 |
98 private: | 103 private: |
99 DISALLOW_COPY_AND_ASSIGN(FlimflamIPConfigClient); | 104 DISALLOW_COPY_AND_ASSIGN(FlimflamIPConfigClient); |
100 }; | 105 }; |
101 | 106 |
102 } // namespace chromeos | 107 } // namespace chromeos |
103 | 108 |
104 #endif // CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_ | 109 #endif // CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_ |
OLD | NEW |