| Index: Source/modules/crypto/AesKeyAlgorithm.h
|
| diff --git a/Source/modules/crypto/Algorithm.h b/Source/modules/crypto/AesKeyAlgorithm.h
|
| similarity index 73%
|
| copy from Source/modules/crypto/Algorithm.h
|
| copy to Source/modules/crypto/AesKeyAlgorithm.h
|
| index f25d9d0243c616cebe5834a7a332a1f289430c03..d50a34b09d9b0c9ce541448b14a5c5f540bdc477 100644
|
| --- a/Source/modules/crypto/Algorithm.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,35 +28,32 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef Algorithm_h
|
| -#define Algorithm_h
|
| +#ifndef AesKeyAlgorithm_h
|
| +#define AesKeyAlgorithm_h
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| #include "heap/Handle.h"
|
| -#include "public/platform/WebCryptoAlgorithm.h"
|
| +#include "modules/crypto/KeyAlgorithm.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
|
|
| namespace WebCore {
|
|
|
| -class Algorithm : public RefCountedWillBeGarbageCollectedFinalized<Algorithm>, public ScriptWrappable {
|
| - DECLARE_GC_INFO;
|
| +class AesKeyAlgorithm : public KeyAlgorithm {
|
| public:
|
| - static PassRefPtrWillBeRawPtr<Algorithm> create(const blink::WebCryptoAlgorithm&);
|
| + static PassRefPtrWillBeRawPtr<AesKeyAlgorithm> create(const blink::WebCryptoKeyAlgorithm&);
|
|
|
| - String name();
|
| + unsigned short length();
|
|
|
| - blink::WebCryptoAlgorithmParamsType type() const { return m_algorithm.paramsType(); }
|
| + virtual void trace(Visitor*) OVERRIDE;
|
|
|
| - void trace(Visitor*) { }
|
| -
|
| -protected:
|
| - explicit Algorithm(const blink::WebCryptoAlgorithm&);
|
| -
|
| - const blink::WebCryptoAlgorithm m_algorithm;
|
| +private:
|
| + explicit AesKeyAlgorithm(const blink::WebCryptoKeyAlgorithm&);
|
| };
|
|
|
| +DEFINE_KEY_ALGORITHM_TYPE_CASTS(AesKeyAlgorithm);
|
| +
|
| } // namespace WebCore
|
|
|
| #endif
|
|
|