Chromium Code Reviews| Index: chromeos/dbus/shill_manager_client.h |
| diff --git a/chromeos/dbus/shill_manager_client.h b/chromeos/dbus/shill_manager_client.h |
| index cc2117498af5158838e8952d8c274a58f66b6392..834937cfb571d8da24502d284818bad6ca8d09ea 100644 |
| --- a/chromeos/dbus/shill_manager_client.h |
| +++ b/chromeos/dbus/shill_manager_client.h |
| @@ -28,13 +28,14 @@ class CHROMEOS_EXPORT ShillManagerClient { |
| public: |
| typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler; |
| typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback; |
| + typedef ShillClientHelper::ErrorCallback ErrorCallback; |
| virtual ~ShillManagerClient(); |
| // Factory function, creates a new instance which is owned by the caller. |
| // For normal usage, access the singleton via DBusThreadManager::Get(). |
| static ShillManagerClient* Create(DBusClientImplementationType type, |
| - dbus::Bus* bus); |
| + dbus::Bus* bus); |
| // Sets PropertyChanged signal handler. |
| virtual void SetPropertyChangedHandler( |
| @@ -59,32 +60,39 @@ class CHROMEOS_EXPORT ShillManagerClient { |
| // |callback| is called after the method call succeeds. |
| virtual void SetProperty(const std::string& name, |
| const base::Value& value, |
| - const VoidDBusMethodCallback& callback) = 0; |
| + const base::Closure& callback, |
| + const ErrorCallback& error_callback) = 0; |
| // Calls RequestScan method. |
| // |callback| is called after the method call succeeds. |
| virtual void RequestScan(const std::string& type, |
| - const VoidDBusMethodCallback& callback) = 0; |
| + const base::Closure& callback, |
| + const ErrorCallback& error_callback) = 0; |
| // Calls EnableTechnology method. |
| // |callback| is called after the method call succeeds. |
| virtual void EnableTechnology(const std::string& type, |
| - const VoidDBusMethodCallback& callback) = 0; |
| + const base::Closure& callback, |
| + const ErrorCallback& error_callback) = 0; |
| // Calls DisableTechnology method. |
| // |callback| is called after the method call succeeds. |
| virtual void DisableTechnology(const std::string& type, |
| - const VoidDBusMethodCallback& callback) = 0; |
| + const base::Closure& callback, |
| + const ErrorCallback& error_callback) = 0; |
| // Calls ConfigureService method. |
| // |callback| is called after the method call succeeds. |
| virtual void ConfigureService(const base::DictionaryValue& properties, |
| - const VoidDBusMethodCallback& callback) = 0; |
| + const base::Closure& callback, |
| + const ErrorCallback& error_callback) = 0; |
| // Calls GetService method. |
| // |callback| is called after the method call succeeds. |
| - virtual void GetService(const base::DictionaryValue& properties, |
| - const ObjectPathDBusMethodCallback& callback) = 0; |
| + virtual void GetService( |
|
hashimoto
2012/09/26 00:17:34
nit: No need to newline?
Greg Spencer (Chromium)
2012/09/26 23:36:33
Done.
|
| + const base::DictionaryValue& properties, |
| + const ObjectPathCallback& callback, |
| + const ErrorCallback& error_callback) = 0; |
| protected: |
| // Create() should be used instead. |