| 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_SHILL_IPCONFIG_CLIENT_H_ |
| 6 #define CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_ | 6 #define CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "chromeos/chromeos_export.h" | 12 #include "chromeos/chromeos_export.h" |
| 13 #include "chromeos/dbus/dbus_client_implementation_type.h" | 13 #include "chromeos/dbus/dbus_client_implementation_type.h" |
| 14 #include "chromeos/dbus/flimflam_client_helper.h" | 14 #include "chromeos/dbus/shill_client_helper.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 | 17 |
| 18 class Value; | 18 class Value; |
| 19 class DictionaryValue; | 19 class DictionaryValue; |
| 20 | 20 |
| 21 } // namespace base | 21 } // namespace base |
| 22 | 22 |
| 23 namespace dbus { | 23 namespace dbus { |
| 24 | 24 |
| 25 class Bus; | 25 class Bus; |
| 26 class ObjectPath; | 26 class ObjectPath; |
| 27 | 27 |
| 28 } // namespace dbus | 28 } // namespace dbus |
| 29 | 29 |
| 30 namespace chromeos { | 30 namespace chromeos { |
| 31 | 31 |
| 32 // FlimflamIPConfigClient is used to communicate with the Flimflam IPConfig | 32 // ShillIPConfigClient is used to communicate with the Shill IPConfig |
| 33 // service. All methods should be called from the origin thread which | 33 // service. All methods should be called from the origin thread which |
| 34 // initializes the DBusThreadManager instance. | 34 // initializes the DBusThreadManager instance. |
| 35 class CHROMEOS_EXPORT FlimflamIPConfigClient { | 35 class CHROMEOS_EXPORT ShillIPConfigClient { |
| 36 public: | 36 public: |
| 37 typedef FlimflamClientHelper::PropertyChangedHandler PropertyChangedHandler; | 37 typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler; |
| 38 typedef FlimflamClientHelper::DictionaryValueCallback DictionaryValueCallback; | 38 typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback; |
| 39 virtual ~FlimflamIPConfigClient(); | 39 virtual ~ShillIPConfigClient(); |
| 40 | 40 |
| 41 // Factory function, creates a new instance which is owned by the caller. | 41 // Factory function, creates a new instance which is owned by the caller. |
| 42 // For normal usage, access the singleton via DBusThreadManager::Get(). | 42 // For normal usage, access the singleton via DBusThreadManager::Get(). |
| 43 static FlimflamIPConfigClient* Create(DBusClientImplementationType type, | 43 static ShillIPConfigClient* Create(DBusClientImplementationType type, |
| 44 dbus::Bus* bus); | 44 dbus::Bus* bus); |
| 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; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 91 |
| 92 // DEPRECATED DO NOT USE: Calls Remove method and blocks until the method call | 92 // DEPRECATED DO NOT USE: Calls Remove method and blocks until the method call |
| 93 // finishes. | 93 // finishes. |
| 94 // | 94 // |
| 95 // TODO(hashimoto): Refactor CrosRemoveIPConfig to remove this method. | 95 // TODO(hashimoto): Refactor CrosRemoveIPConfig to remove this method. |
| 96 // crosbug.com/29902 | 96 // crosbug.com/29902 |
| 97 virtual bool CallRemoveAndBlock(const dbus::ObjectPath& ipconfig_path) = 0; | 97 virtual bool CallRemoveAndBlock(const dbus::ObjectPath& ipconfig_path) = 0; |
| 98 | 98 |
| 99 protected: | 99 protected: |
| 100 // Create() should be used instead. | 100 // Create() should be used instead. |
| 101 FlimflamIPConfigClient(); | 101 ShillIPConfigClient(); |
| 102 | 102 |
| 103 private: | 103 private: |
| 104 DISALLOW_COPY_AND_ASSIGN(FlimflamIPConfigClient); | 104 DISALLOW_COPY_AND_ASSIGN(ShillIPConfigClient); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace chromeos | 107 } // namespace chromeos |
| 108 | 108 |
| 109 #endif // CHROMEOS_DBUS_FLIMFLAM_IPCONFIG_CLIENT_H_ | 109 #endif // CHROMEOS_DBUS_SHILL_IPCONFIG_CLIENT_H_ |
| OLD | NEW |