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

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

Issue 23479016: Introduce Promise mapping to the IDL generator (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
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;
};

Powered by Google App Engine
This is Rietveld 408576698