| Index: Source/modules/crypto/AesKeyGenParams.h
|
| diff --git a/Source/modules/crypto/WorkerCrypto.h b/Source/modules/crypto/AesKeyGenParams.h
|
| similarity index 78%
|
| copy from Source/modules/crypto/WorkerCrypto.h
|
| copy to Source/modules/crypto/AesKeyGenParams.h
|
| index 5bbb3f5d39eba918f40aab6f91439d3993547e81..ac29f170c1fe56fa973ae1306901ba60f368476a 100644
|
| --- a/Source/modules/crypto/WorkerCrypto.h
|
| +++ b/Source/modules/crypto/AesKeyGenParams.h
|
| @@ -28,26 +28,26 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WorkerCrypto_h
|
| -#define WorkerCrypto_h
|
| +#ifndef AesKeyGenParams_h
|
| +#define AesKeyGenParams_h
|
|
|
| -#include "bindings/v8/ScriptWrappable.h"
|
| -#include "wtf/Forward.h"
|
| -#include "wtf/PassRefPtr.h"
|
| -#include "wtf/RefCounted.h"
|
| +#include "modules/crypto/Algorithm.h"
|
| +#include "public/platform/WebCryptoAlgorithm.h"
|
|
|
| namespace WebCore {
|
|
|
| typedef int ExceptionCode;
|
|
|
| -class WorkerCrypto : public ScriptWrappable, public RefCounted<WorkerCrypto> {
|
| +class AesKeyGenParams : public Algorithm {
|
| public:
|
| - static PassRefPtr<WorkerCrypto> create() { return adoptRef(new WorkerCrypto()); }
|
| + static PassRefPtr<AesKeyGenParams> create(const WebKit::WebCryptoAlgorithm& algorithm) { return adoptRef(new AesKeyGenParams(algorithm)); }
|
| +
|
| + unsigned short length() const;
|
|
|
| private:
|
| - WorkerCrypto();
|
| + explicit AesKeyGenParams(const WebKit::WebCryptoAlgorithm&);
|
| };
|
|
|
| -}
|
| +} // namespace WebCore
|
|
|
| #endif
|
|
|