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

Unified Diff: public/platform/WebCrypto.h

Issue 1228373006: Reliably cancel in-progress CryptoResult(Impl) upon shutdown. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebased upto r199421 and use it for (again) heap-based CryptoResults Created 5 years, 5 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: public/platform/WebCrypto.h
diff --git a/public/platform/WebCrypto.h b/public/platform/WebCrypto.h
index e0b8174297d704a25e4e3edb665c79ac8db5000b..dcaa3067ac9cd8ee86734f73eaab59b54a4bc750 100644
--- a/public/platform/WebCrypto.h
+++ b/public/platform/WebCrypto.h
@@ -95,13 +95,17 @@ public:
#if INSIDE_BLINK
BLINK_PLATFORM_EXPORT explicit WebCryptoResult(const PassRefPtrWillBeRawPtr<CryptoResult>&);
+
+ BLINK_PLATFORM_EXPORT void clear();
#endif
private:
BLINK_PLATFORM_EXPORT void reset();
BLINK_PLATFORM_EXPORT void assign(const WebCryptoResult&);
- WebPrivatePtr<CryptoResult> m_impl;
+ int m_cancelled;
+
+ WebPrivatePtr<CryptoResult, WebPrivatePtrDestructionCrossThread> m_impl;
};
class WebCryptoDigestor {
« Source/modules/crypto/CryptoResultImpl.h ('K') | « Source/platform/exported/WebCryptoResult.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698