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

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

Issue 1397073002: [Oilpan] Create UnsafePtr to store on-heap pointers in Vector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Work for nits Created 5 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Handle.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/Heap.h
diff --git a/third_party/WebKit/Source/platform/heap/Heap.h b/third_party/WebKit/Source/platform/heap/Heap.h
index 5d45a3d7e14e5cc7405d7d319712debfcfdef783..355b1719b087a41de758b9d4e15e43f71888ce69 100644
--- a/third_party/WebKit/Source/platform/heap/Heap.h
+++ b/third_party/WebKit/Source/platform/heap/Heap.h
@@ -43,6 +43,10 @@
namespace blink {
+template<typename T> class Member;
+template<typename T> class WeakMember;
+template<typename T> class UntracedMember;
+
template<typename T, bool = NeedsAdjustAndMark<T>::value> class ObjectAliveTrait;
template<typename T>
@@ -100,6 +104,11 @@ public:
return isHeapObjectAlive(member.get());
}
template<typename T>
+ static inline bool isHeapObjectAlive(const UntracedMember<T>& member)
+ {
+ return isHeapObjectAlive(member.get());
+ }
+ template<typename T>
static inline bool isHeapObjectAlive(const RawPtr<T>& ptr)
{
return isHeapObjectAlive(ptr.get());
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Handle.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698