diff options
author | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-28 20:34:18 +0000 |
---|---|---|
committer | gspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-09-28 20:34:18 +0000 |
commit | d690ba464ab9b62373eb6b88435054d79f93a02e (patch) | |
tree | e010ce3b5d8cca5d6e7e03446d5742a7c4439929 /chromeos/dbus/shill_service_client.h | |
parent | 2a74ed6cca3901234dad1294487a6ccd7b0710c9 (diff) | |
download | chromium_src-d690ba464ab9b62373eb6b88435054d79f93a02e.zip chromium_src-d690ba464ab9b62373eb6b88435054d79f93a02e.tar.gz chromium_src-d690ba464ab9b62373eb6b88435054d79f93a02e.tar.bz2 |
This converts the Shill clients to allow propagation of shill errors
back from the function calls. The existing implentation completely ignores most shill errors, and the javascript implementation will want to be able to receive them to aid in diagnosis.
BUG=chromium:147620,chromium:146616
TEST=Ran unit tests, ran on device.
Review URL: https://chromiumcodereview.appspot.com/10949030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_service_client.h')
-rw-r--r-- | chromeos/dbus/shill_service_client.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/chromeos/dbus/shill_service_client.h b/chromeos/dbus/shill_service_client.h index 7f0cf1c..0e30243 100644 --- a/chromeos/dbus/shill_service_client.h +++ b/chromeos/dbus/shill_service_client.h @@ -66,13 +66,15 @@ class CHROMEOS_EXPORT ShillServiceClient { virtual void SetProperty(const dbus::ObjectPath& service_path, const std::string& name, const base::Value& value, - const VoidDBusMethodCallback& callback) = 0; + const base::Closure& callback, + const ErrorCallback& error_callback) = 0; // Calls ClearProperty method. // |callback| is called after the method call succeeds. virtual void ClearProperty(const dbus::ObjectPath& service_path, const std::string& name, - const VoidDBusMethodCallback& callback) = 0; + const base::Closure& callback, + const ErrorCallback& error_callback) = 0; // Calls Connect method. // |callback| is called after the method call succeeds. @@ -83,19 +85,22 @@ class CHROMEOS_EXPORT ShillServiceClient { // Calls Disconnect method. // |callback| is called after the method call succeeds. virtual void Disconnect(const dbus::ObjectPath& service_path, - const VoidDBusMethodCallback& callback) = 0; + const base::Closure& callback, + const ErrorCallback& error_callback) = 0; // Calls Remove method. // |callback| is called after the method call succeeds. virtual void Remove(const dbus::ObjectPath& service_path, - const VoidDBusMethodCallback& callback) = 0; + const base::Closure& callback, + const ErrorCallback& error_callback) = 0; // Calls ActivateCellularModem method. // |callback| is called after the method call succeeds. virtual void ActivateCellularModem( const dbus::ObjectPath& service_path, const std::string& carrier, - const VoidDBusMethodCallback& callback) = 0; + const base::Closure& callback, + const ErrorCallback& error_callback) = 0; // DEPRECATED DO NOT USE: Calls ActivateCellularModem method and blocks until // the method call finishes. |