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

Unified Diff: tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.h

Issue 1433883003: GC plugin: RefPtr<T> is legal if T is RefCountedGC-derived. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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: tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.h
diff --git a/tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.h b/tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.h
index 0dba31165bddff5ba03426e2172ef30fbcbcb928..405732eb8abfc9119396af6cdc42c2b3e14cf3e8 100644
--- a/tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.h
+++ b/tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.h
@@ -25,6 +25,14 @@ private:
Vector<RefPtr<HeapObject> > m_objs;
};
+class RefHeapObject : public RefCountedGarbageCollected<HeapObject> {
+public:
+ void trace(Visitor*);
+private:
+ PartObject m_part;
+ Vector<RefPtr<RefHeapObject> > m_objs;
+};
+
}
#endif
« no previous file with comments | « tools/clang/blink_gc_plugin/tests/heap/stubs.h ('k') | tools/clang/blink_gc_plugin/tests/ref_ptr_to_gc_managed_class.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698