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

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

Issue 311733004: Introduce KeepAliveWhilePending to ScriptPromiseResolverWithContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@refactor-webmidi-initialization
Patch Set: Created 6 years, 6 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/SubtleCrypto.h
diff --git a/Source/modules/crypto/SubtleCrypto.h b/Source/modules/crypto/SubtleCrypto.h
index ad7f201c043f76eb9a9b1d884921316d1bad2fd6..7fcb08347306637a6cac8e2b312a9e05f29bde68 100644
--- a/Source/modules/crypto/SubtleCrypto.h
+++ b/Source/modules/crypto/SubtleCrypto.h
@@ -33,9 +33,11 @@
#include "bindings/v8/ScriptPromise.h"
#include "bindings/v8/ScriptWrappable.h"
+#include "platform/CryptoResult.h"
#include "platform/heap/Handle.h"
#include "wtf/ArrayPiece.h"
#include "wtf/Forward.h"
+#include "wtf/HashSet.h"
#include "wtf/RefCounted.h"
namespace WebCore {
@@ -67,7 +69,12 @@ public:
void trace(Visitor*) { }
private:
+ class PendingResult;
SubtleCrypto();
+
+ ScriptPromise startCryptoOperation(ScriptState*, const Dictionary&, Key*, blink::WebCryptoOperation, const ArrayPiece& signature, const ArrayPiece& dataBuffer);
+
+ HashSet<RefPtr<CryptoResult> > m_pendingResults;
};
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698