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

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: Add testing interface 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..839aefef27c3670103cba0b661b656453aa16726 100644
--- a/Source/modules/crypto/Key.h
+++ b/Source/modules/crypto/Key.h
@@ -46,11 +46,19 @@ class Key : public ScriptWrappable, public RefCounted<Key> {
public:
static PassRefPtr<Key> create(const WebKit::WebCryptoKey& key) { return adoptRef(new Key(key)); }
+ ~Key();
+
String type() const;
bool extractable() const;
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