summaryrefslogtreecommitdiffstats
path: root/chromeos/dbus/shill_manager_client.h
diff options
context:
space:
mode:
authorgspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-20 01:20:20 +0000
committergspencer@chromium.org <gspencer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-20 01:20:20 +0000
commit5095fee2f3f7ebb4c6b0db3d725360b6212ecf2e (patch)
tree0eb136699b58a3c6332d50e41939111e8298ee3a /chromeos/dbus/shill_manager_client.h
parentcb93bf59113fdfaba131b320559cb8498bf1b744 (diff)
downloadchromium_src-5095fee2f3f7ebb4c6b0db3d725360b6212ecf2e.zip
chromium_src-5095fee2f3f7ebb4c6b0db3d725360b6212ecf2e.tar.gz
chromium_src-5095fee2f3f7ebb4c6b0db3d725360b6212ecf2e.tar.bz2
This adds the remaining extension functions for networkingPrivate.
BUG=chromium:172996 TEST=ran new unit and browser tests. Review URL: https://chromiumcodereview.appspot.com/12286012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183358 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chromeos/dbus/shill_manager_client.h')
-rw-r--r--chromeos/dbus/shill_manager_client.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/chromeos/dbus/shill_manager_client.h b/chromeos/dbus/shill_manager_client.h
index f191753..473efc0 100644
--- a/chromeos/dbus/shill_manager_client.h
+++ b/chromeos/dbus/shill_manager_client.h
@@ -31,6 +31,8 @@ class CHROMEOS_EXPORT ShillManagerClient {
typedef ShillClientHelper::PropertyChangedHandler PropertyChangedHandler;
typedef ShillClientHelper::DictionaryValueCallback DictionaryValueCallback;
typedef ShillClientHelper::ErrorCallback ErrorCallback;
+ typedef ShillClientHelper::StringCallback StringCallback;
+ typedef ShillClientHelper::BooleanCallback BooleanCallback;
// Interface for setting up devices, services, and technologies for testing.
// Accessed through GetTestInterface(), only implemented in the Stub Impl.
@@ -126,6 +128,42 @@ class CHROMEOS_EXPORT ShillManagerClient {
const ObjectPathCallback& callback,
const ErrorCallback& error_callback) = 0;
+ // Verify that the given data corresponds to a trusted device, and return true
+ // to the callback if it is.
+ virtual void VerifyDestination(const std::string& certificate,
+ const std::string& public_key,
+ const std::string& nonce,
+ const std::string& signed_data,
+ const std::string& device_serial,
+ const BooleanCallback& callback,
+ const ErrorCallback& error_callback) = 0;
+
+ // Verify that the given data corresponds to a trusted device, and if it is,
+ // return the encrypted credentials for connecting to the network represented
+ // by the given |service_path|, encrypted using the |public_key| for the
+ // trusted device. If the device is not trusted, return the empty string.
+ virtual void VerifyAndSignCredentials(
+ const std::string& certificate,
+ const std::string& public_key,
+ const std::string& nonce,
+ const std::string& signed_data,
+ const std::string& device_serial,
+ const std::string& service_path,
+ const StringCallback& callback,
+ const ErrorCallback& error_callback) = 0;
+
+ // Verify that the given data corresponds to a trusted device, and return the
+ // |data| encrypted using the |public_key| for the trusted device. If the
+ // device is not trusted, return the empty string.
+ virtual void VerifyAndSignData(const std::string& certificate,
+ const std::string& public_key,
+ const std::string& nonce,
+ const std::string& signed_data,
+ const std::string& device_serial,
+ const std::string& data,
+ const StringCallback& callback,
+ const ErrorCallback& error_callback) = 0;
+
// Returns an interface for testing (stub only), or returns NULL.
virtual TestInterface* GetTestInterface() = 0;