| Index: Source/modules/crypto/CryptoResult.h
|
| diff --git a/Source/modules/crypto/CryptoResult.h b/Source/modules/crypto/CryptoResult.h
|
| index 373a173295e49990d530e4760eee8496a01d1093..e54efcc81e58a3966ac3207e9aab6e3b88af56d8 100644
|
| --- a/Source/modules/crypto/CryptoResult.h
|
| +++ b/Source/modules/crypto/CryptoResult.h
|
| @@ -31,15 +31,14 @@
|
| #ifndef CryptoResult_h
|
| #define CryptoResult_h
|
|
|
| -#include "bindings/v8/ScriptObject.h"
|
| +#include "bindings/v8/ScriptPromise.h"
|
| +#include "bindings/v8/ScriptPromiseResolver.h"
|
| #include "public/platform/WebCrypto.h"
|
| #include "wtf/Forward.h"
|
| #include "wtf/ThreadSafeRefCounted.h"
|
|
|
| namespace WebCore {
|
|
|
| -class ScriptPromiseResolver;
|
| -
|
| // Wrapper around a Promise to notify completion of the crypto operation.
|
| class CryptoResult : public ThreadSafeRefCounted<CryptoResult> {
|
| public:
|
| @@ -58,13 +57,13 @@ public:
|
| return WebKit::WebCryptoResult(this);
|
| }
|
|
|
| - ScriptObject promise();
|
| + ScriptPromise promise();
|
|
|
| private:
|
| CryptoResult();
|
| void finish();
|
|
|
| - RefPtr<ScriptPromiseResolver> m_promiseResolver;
|
| + ScriptPromiseResolver m_promiseResolver;
|
| bool m_finished;
|
| };
|
|
|
|
|