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 |