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

Unified Diff: Source/modules/crypto/AesKeyAlgorithm.h

Issue 179353002: [webcrypto] Add the KeyAlgorithm interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase yet again (another conflict) Created 6 years, 10 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
« no previous file with comments | « Source/heap/ThreadState.h ('k') | Source/modules/crypto/AesKeyAlgorithm.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/AesKeyAlgorithm.h
diff --git a/Source/modules/crypto/WorkerCrypto.h b/Source/modules/crypto/AesKeyAlgorithm.h
similarity index 77%
copy from Source/modules/crypto/WorkerCrypto.h
copy to Source/modules/crypto/AesKeyAlgorithm.h
index a3c3564b3524f8e7b04ad7a43154547816fbdaed..d50a34b09d9b0c9ce541448b14a5c5f540bdc477 100644
--- a/Source/modules/crypto/WorkerCrypto.h
+++ b/Source/modules/crypto/AesKeyAlgorithm.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2013 Google Inc. All rights reserved.
+ * Copyright (C) 2014 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,30 +28,32 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WorkerCrypto_h
-#define WorkerCrypto_h
+#ifndef AesKeyAlgorithm_h
+#define AesKeyAlgorithm_h
#include "bindings/v8/ScriptWrappable.h"
#include "heap/Handle.h"
+#include "modules/crypto/KeyAlgorithm.h"
#include "wtf/Forward.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
namespace WebCore {
-class WorkerCrypto : public RefCountedWillBeGarbageCollectedFinalized<WorkerCrypto>, public ScriptWrappable {
+class AesKeyAlgorithm : public KeyAlgorithm {
public:
- static PassRefPtrWillBeRawPtr<WorkerCrypto> create()
- {
- return adoptRefWillBeNoop(new WorkerCrypto());
- }
+ static PassRefPtrWillBeRawPtr<AesKeyAlgorithm> create(const blink::WebCryptoKeyAlgorithm&);
- void trace(Visitor*) { }
+ unsigned short length();
+
+ virtual void trace(Visitor*) OVERRIDE;
private:
- WorkerCrypto();
+ explicit AesKeyAlgorithm(const blink::WebCryptoKeyAlgorithm&);
};
-}
+DEFINE_KEY_ALGORITHM_TYPE_CASTS(AesKeyAlgorithm);
+
+} // namespace WebCore
#endif
« no previous file with comments | « Source/heap/ThreadState.h ('k') | Source/modules/crypto/AesKeyAlgorithm.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698