Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1459)

Unified Diff: Source/modules/crypto/CryptoResultImpl.h

Issue 236673003: [WebCrypto] Use ScriptPromiseResolverWithContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/modules/crypto/CryptoResultImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/CryptoResultImpl.h
diff --git a/Source/modules/crypto/CryptoResultImpl.h b/Source/modules/crypto/CryptoResultImpl.h
index 0b54ba2ec71d0fa19e0465baccd6d462d9e4b4f0..f4fa76bf8d38620bbb0cd41a51d33b7206ddcb13 100644
--- a/Source/modules/crypto/CryptoResultImpl.h
+++ b/Source/modules/crypto/CryptoResultImpl.h
@@ -31,9 +31,8 @@
#ifndef CryptoResultImpl_h
#define CryptoResultImpl_h
-#include "bindings/v8/NewScriptState.h"
#include "bindings/v8/ScriptPromise.h"
-#include "bindings/v8/ScriptPromiseResolver.h"
+#include "bindings/v8/ScriptPromiseResolverWithContext.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "platform/CryptoResult.h"
#include "public/platform/WebCrypto.h"
@@ -43,9 +42,6 @@
namespace WebCore {
-class ScriptPromiseResolver;
-class ScriptState;
-
// Wrapper around a Promise to notify completion of the crypto operation.
// Platform cannot know about Promises which are declared in bindings.
class CryptoResultImpl FINAL : public CryptoResult, public ContextLifecycleObserver {
@@ -76,8 +72,7 @@ private:
void clearPromiseResolver();
- RefPtr<ScriptPromiseResolver> m_promiseResolver;
- RefPtr<NewScriptState> m_scriptState;
+ RefPtr<ScriptPromiseResolverWithContext> m_promiseResolver;
#if !ASSERT_DISABLED
ThreadIdentifier m_owningThread;
« no previous file with comments | « no previous file | Source/modules/crypto/CryptoResultImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698