X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fextensions%2Fapi%2Feasy_unlock_private%2Feasy_unlock_private_crypto_delegate.h;h=6354c4cc06ce15fa48a8333507ae5b176f8c05c5;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=5053a9928c7eba3002ae3fda2d0a5a927ff80078;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_crypto_delegate.h b/src/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_crypto_delegate.h index 5053a99..6354c4c 100644 --- a/src/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_crypto_delegate.h +++ b/src/chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_crypto_delegate.h @@ -14,8 +14,9 @@ namespace extensions { namespace api { -// Wrapper around EasyUnlock dbus client on ChromeOS. On other platforms, the -// methods are stubbed out. +// Wrapper around EasyUnlock dbus client on Chrome OS. The methods read +// extension function pearameters and invoke the associated EasyUnlock dbus +// client methods. On non-Chrome OS platforms, the methods are stubbed out. class EasyUnlockPrivateCryptoDelegate { public: typedef base::Callback DataCallback; @@ -32,24 +33,14 @@ class EasyUnlockPrivateCryptoDelegate { // See chromeos/dbus/easy_unlock_client.h for info on these methods. virtual void GenerateEcP256KeyPair(const KeyPairCallback& callback) = 0; - virtual void PerformECDHKeyAgreement(const std::string& private_key, - const std::string& public_key, - const DataCallback& callback) = 0; + virtual void PerformECDHKeyAgreement( + const easy_unlock_private::PerformECDHKeyAgreement::Params& params, + const DataCallback& callback) = 0; virtual void CreateSecureMessage( - const std::string& payload, - const std::string& secret_key, - const std::string& associated_data, - const std::string& public_metadata, - const std::string& verification_key_id, - easy_unlock_private::EncryptionType encryption_type, - easy_unlock_private::SignatureType signature_type, + const easy_unlock_private::CreateSecureMessage::Params& params, const DataCallback& callback) = 0; virtual void UnwrapSecureMessage( - const std::string& message, - const std::string& secret_key, - const std::string& associated_data, - easy_unlock_private::EncryptionType encryption_type, - easy_unlock_private::SignatureType signature_type, + const easy_unlock_private::UnwrapSecureMessage::Params& params, const DataCallback& callback) = 0; };