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

Unified Diff: public/platform/WebCryptoKey.h

Issue 195543002: [webcrypto] Implement structured clone of keys (blink-side). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixes for jsbell 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: public/platform/WebCryptoKey.h
diff --git a/public/platform/WebCryptoKey.h b/public/platform/WebCryptoKey.h
index 8a48e6b8902a9d21ab82bd62b7d71db8c208be81..e1b12a36e9e89b9839f86dbaf79c87249850567c 100644
--- a/public/platform/WebCryptoKey.h
+++ b/public/platform/WebCryptoKey.h
@@ -33,6 +33,7 @@
#include "WebCommon.h"
#include "WebPrivatePtr.h"
+#include "WebVector.h"
namespace blink {
@@ -43,13 +44,13 @@ enum WebCryptoKeyType {
};
enum WebCryptoKeyUsage {
- WebCryptoKeyUsageEncrypt = 1 << 0,
- WebCryptoKeyUsageDecrypt = 1 << 1,
- WebCryptoKeyUsageSign = 1 << 2,
- WebCryptoKeyUsageVerify = 1 << 3,
- WebCryptoKeyUsageDeriveKey = 1 << 4,
- WebCryptoKeyUsageWrapKey = 1 << 5,
- WebCryptoKeyUsageUnwrapKey = 1 << 6,
+ WebCryptoKeyUsageEncrypt = 1 << 1,
+ WebCryptoKeyUsageDecrypt = 1 << 2,
+ WebCryptoKeyUsageSign = 1 << 3,
+ WebCryptoKeyUsageVerify = 1 << 4,
+ WebCryptoKeyUsageDeriveKey = 1 << 5,
+ WebCryptoKeyUsageWrapKey = 1 << 6,
+ WebCryptoKeyUsageUnwrapKey = 1 << 7,
#if INSIDE_BLINK
EndOfWebCryptoKeyUsage,
#endif
@@ -86,11 +87,6 @@ class WebCryptoKeyHandle;
//
// If WebCryptoKey "isNull()" then it is invalid to call any of the other
// methods on it (other than destruction, assignment, or isNull()).
-//
-// FIXME: Define the interface to use for structured clone.
-// Cloning across a process boundary will need serialization,
-// however cloning for in-process workers could just share the same
-// (threadsafe) handle.
class WebCryptoKey {
public:
~WebCryptoKey() { reset(); }

Powered by Google App Engine
This is Rietveld 408576698