Index: content/child/webcrypto/jwk.h |
diff --git a/content/child/webcrypto/jwk.h b/content/child/webcrypto/jwk.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3a882559eaf54825e5d0cf588f8e7b19952dee0b |
--- /dev/null |
+++ b/content/child/webcrypto/jwk.h |
@@ -0,0 +1,33 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
eroman
2014/03/25 23:43:37
This file should also be added to the .gypi.
That
padolph
2014/03/26 00:01:46
Done.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_CHILD_WEBCRYPTO_JWK_H_ |
+#define CONTENT_CHILD_WEBCRYPTO_JWK_H_ |
+ |
+#include "third_party/WebKit/public/platform/WebArrayBuffer.h" |
+#include "third_party/WebKit/public/platform/WebCrypto.h" |
+#include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
+ |
+namespace content { |
+ |
+namespace webcrypto { |
+ |
+class CryptoData; |
+ |
eroman
2014/03/25 23:43:37
nit: delete this empty line
padolph
2014/03/26 00:01:46
Done.
|
+class Status; |
+ |
+Status ImportKeyJwk(const CryptoData& key_data, |
+ const blink::WebCryptoAlgorithm& algorithm, |
+ bool extractable, |
+ blink::WebCryptoKeyUsageMask usage_mask, |
+ blink::WebCryptoKey* key); |
+ |
+Status ExportKeyJwk(const blink::WebCryptoKey& key, |
+ blink::WebArrayBuffer* buffer); |
+ |
+} // namespace webcrypto |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_CHILD_WEBCRYPTO_JWK_H_ |