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

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: fix another comment 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,
jsbell 2014/03/13 20:16:07 Since this isn't directly serialized, there's no n
eroman 2014/03/14 18:28:09 Correct there is no direct need to bump it. I can
jsbell 2014/03/14 18:39:27 I have no preference. Maybe add a comment explaini
eroman 2014/03/14 19:32:51 I reverted the change, so no longer a need for the
+ 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