| Index: Source/modules/crypto/CryptoOperation.h
|
| diff --git a/Source/modules/crypto/WorkerCrypto.h b/Source/modules/crypto/CryptoOperation.h
|
| similarity index 75%
|
| copy from Source/modules/crypto/WorkerCrypto.h
|
| copy to Source/modules/crypto/CryptoOperation.h
|
| index 5bbb3f5d39eba918f40aab6f91439d3993547e81..001747eb26e92fdea2ca96ba41e45434ac76e314 100644
|
| --- a/Source/modules/crypto/WorkerCrypto.h
|
| +++ b/Source/modules/crypto/CryptoOperation.h
|
| @@ -28,10 +28,12 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef WorkerCrypto_h
|
| -#define WorkerCrypto_h
|
| +#ifndef CryptoOperation_h
|
| +#define CryptoOperation_h
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| +#include "modules/crypto/Algorithm.h"
|
| +#include "public/platform/WebCryptoAlgorithm.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
| @@ -40,14 +42,19 @@ namespace WebCore {
|
|
|
| typedef int ExceptionCode;
|
|
|
| -class WorkerCrypto : public ScriptWrappable, public RefCounted<WorkerCrypto> {
|
| +class CryptoOperation : public ScriptWrappable, public RefCounted<CryptoOperation> {
|
| public:
|
| - static PassRefPtr<WorkerCrypto> create() { return adoptRef(new WorkerCrypto()); }
|
| + static PassRefPtr<CryptoOperation> create(const WebKit::WebCryptoAlgorithm& algorithm) { return adoptRef(new CryptoOperation(algorithm)); }
|
| +
|
| + Algorithm* algorithm();
|
|
|
| private:
|
| - WorkerCrypto();
|
| + explicit CryptoOperation(const WebKit::WebCryptoAlgorithm&);
|
| +
|
| + WebKit::WebCryptoAlgorithm m_algorithm;
|
| + RefPtr<Algorithm> m_algorithmNode;
|
| };
|
|
|
| -}
|
| +} // namespace WebCore
|
|
|
| #endif
|
|
|