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

Unified Diff: third_party/WebKit/Source/platform/heap/ThreadingTraits.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/ThreadingTraits.h
diff --git a/third_party/WebKit/Source/platform/heap/ThreadingTraits.h b/third_party/WebKit/Source/platform/heap/ThreadingTraits.h
index 7dfffb5592a5a44adb0ef51e5f26e235d164163d..a58b796edc70a0688c11fe103dfbfbdbeb34ed75 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadingTraits.h
+++ b/third_party/WebKit/Source/platform/heap/ThreadingTraits.h
@@ -19,6 +19,8 @@
namespace blink {
template <typename T>
+class SameThreadCheckedMember;
+template <typename T>
class TraceWrapperMember;
// ThreadAffinity indicates which threads objects can be used on. We
@@ -83,6 +85,12 @@ struct ThreadingTrait<Member<T>> {
};
template <typename T>
+struct ThreadingTrait<SameThreadCheckedMember<T>> {
+ STATIC_ONLY(ThreadingTrait);
+ static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity;
+};
+
+template <typename T>
struct ThreadingTrait<TraceWrapperMember<T>> {
STATIC_ONLY(ThreadingTrait);
static const ThreadAffinity Affinity = ThreadingTrait<T>::Affinity;
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Member.h ('k') | third_party/WebKit/Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698