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

Unified Diff: Source/modules/crypto/Key.h

Issue 19885002: WebCrypto: Add interfaces for importKey(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Move test stuff into MockWebCrypto Created 7 years, 5 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: Source/modules/crypto/Key.h
diff --git a/Source/modules/crypto/Key.h b/Source/modules/crypto/Key.h
index 4b9c008cace9a991350f7dc4e96b2adc48063bbb..2d222d2b99f2fe752bf6ddf0857e85ea463664cb 100644
--- a/Source/modules/crypto/Key.h
+++ b/Source/modules/crypto/Key.h
@@ -51,6 +51,12 @@ public:
Algorithm* algorithm();
Vector<String> usages() const;
+ static bool parseFormat(const String&, WebKit::WebCryptoKeyFormat&);
+
+ // Parses KeyUsage strings to a WebCryptoKeyUsageMask. If any element is
+ // unrecognized, returns false.
+ static bool parseUsageMask(const Vector<String>&, WebKit::WebCryptoKeyUsageMask&);
+
protected:
explicit Key(const WebKit::WebCryptoKey&);

Powered by Google App Engine
This is Rietveld 408576698