Index: Source/modules/crypto/AesCbcParams.h |
diff --git a/Source/modules/crypto/WorkerCrypto.h b/Source/modules/crypto/AesCbcParams.h |
similarity index 79% |
copy from Source/modules/crypto/WorkerCrypto.h |
copy to Source/modules/crypto/AesCbcParams.h |
index 5bbb3f5d39eba918f40aab6f91439d3993547e81..dbde8d9ad5b441735632af8b235180e29547c75e 100644 |
--- a/Source/modules/crypto/WorkerCrypto.h |
+++ b/Source/modules/crypto/AesCbcParams.h |
@@ -28,26 +28,28 @@ |
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
-#ifndef WorkerCrypto_h |
-#define WorkerCrypto_h |
+#ifndef AesCbcParams_h |
+#define AesCbcParams_h |
-#include "bindings/v8/ScriptWrappable.h" |
-#include "wtf/Forward.h" |
-#include "wtf/PassRefPtr.h" |
-#include "wtf/RefCounted.h" |
+#include "modules/crypto/Algorithm.h" |
+#include "wtf/Uint8Array.h" |
namespace WebCore { |
typedef int ExceptionCode; |
-class WorkerCrypto : public ScriptWrappable, public RefCounted<WorkerCrypto> { |
+class AesCbcParams : public Algorithm { |
public: |
- static PassRefPtr<WorkerCrypto> create() { return adoptRef(new WorkerCrypto()); } |
+ static PassRefPtr<AesCbcParams> create(const WebKit::WebCryptoAlgorithm& algorithm) { return adoptRef(new AesCbcParams(algorithm)); } |
+ |
+ PassRefPtr<Uint8Array> iv(); |
abarth-chromium
2013/07/02 06:46:36
This should just be Uint8Array*. PassRefPtr is us
eroman
2013/07/02 08:12:27
Done.
|
private: |
- WorkerCrypto(); |
+ AesCbcParams(const WebKit::WebCryptoAlgorithm&); |
abarth-chromium
2013/07/02 06:46:36
Please mark one-argument constructors "explicit".
eroman
2013/07/02 08:12:27
Done.
|
+ |
+ RefPtr<Uint8Array> m_iv; |
}; |
-} |
+} // namespace WebCore |
#endif |