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

Unified Diff: third_party/WebKit/Source/platform/heap/TraceTraits.h

Issue 2592063002: SameThreadCheckedMember<>: verify same-thread usage of heap references. (Closed)
Patch Set: emphasize that the extended Member is for diagnosing/debugging Created 4 years 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: third_party/WebKit/Source/platform/heap/TraceTraits.h
diff --git a/third_party/WebKit/Source/platform/heap/TraceTraits.h b/third_party/WebKit/Source/platform/heap/TraceTraits.h
index a56ccf1a0f3d4a5cebfea9e0068a3adaed65eb1d..f3e4bd07768dc90596cb45d1a9c9a03e463a5085 100644
--- a/third_party/WebKit/Source/platform/heap/TraceTraits.h
+++ b/third_party/WebKit/Source/platform/heap/TraceTraits.h
@@ -360,6 +360,14 @@ class TraceEagerlyTrait<Member<T>> {
};
template <typename T>
+class TraceEagerlyTrait<SameThreadCheckedMember<T>> {
+ STATIC_ONLY(TraceEagerlyTrait);
+
+ public:
+ static const bool value = TraceEagerlyTrait<T>::value;
+};
+
+template <typename T>
class TraceEagerlyTrait<TraceWrapperMember<T>> {
STATIC_ONLY(TraceEagerlyTrait);
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadingTraits.h ('k') | third_party/WebKit/Source/platform/heap/Visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698