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

Unified Diff: Source/modules/crypto/SubtleCrypto.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/SubtleCrypto.h
diff --git a/Source/modules/crypto/SubtleCrypto.h b/Source/modules/crypto/SubtleCrypto.h
index 3df45a197d05977e28b5400d8cbc27464cdfb46e..e68422d5b12b684be5e59c0d0e35ea0a708ca4c6 100644
--- a/Source/modules/crypto/SubtleCrypto.h
+++ b/Source/modules/crypto/SubtleCrypto.h
@@ -31,6 +31,7 @@
#ifndef SubtleCrypto_h
#define SubtleCrypto_h
+#include "bindings/v8/ScriptObject.h"
#include "bindings/v8/ScriptWrappable.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
@@ -54,6 +55,8 @@ public:
PassRefPtr<CryptoOperation> verifySignature(const Dictionary&, ExceptionCode&);
PassRefPtr<CryptoOperation> digest(const Dictionary&, ExceptionCode&);
+ ScriptObject importKey(const String&, ArrayBufferView*, const Dictionary&, bool extractable, const Vector<String>& keyUsages, ExceptionCode&);
+
private:
SubtleCrypto();
};

Powered by Google App Engine
This is Rietveld 408576698