Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Unified Diff: content/child/webcrypto/webcrypto_impl.h

Issue 196513002: [webcrypto] Implement structured clone of keys (chromium-side). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix to data->assign() Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/child/webcrypto/webcrypto_impl.h
diff --git a/content/child/webcrypto/webcrypto_impl.h b/content/child/webcrypto/webcrypto_impl.h
index 001471582cfef576141c31171bb854a66bb5d936..2112bfea4aed171fdcda8299d898593d42bf24e6 100644
--- a/content/child/webcrypto/webcrypto_impl.h
+++ b/content/child/webcrypto/webcrypto_impl.h
@@ -68,6 +68,18 @@ class WebCryptoImpl : public blink::WebCrypto {
unsigned int data_size,
blink::WebArrayBuffer& result);
+ virtual bool deserializeKeyForClone(
+ const blink::WebCryptoKeyAlgorithm& algorithm,
+ blink::WebCryptoKeyType type,
+ bool extractable,
+ blink::WebCryptoKeyUsageMask usages,
+ const unsigned char* key_data,
+ unsigned key_data_size,
+ blink::WebCryptoKey& key);
+
+ virtual bool serializeKeyForClone(const blink::WebCryptoKey& key,
+ blink::WebVector<unsigned char>& key_data);
+
private:
DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
};

Powered by Google App Engine
This is Rietveld 408576698