Roll src/third_party/WebKit d10c917:a1123a1 (svn 198729:198730)
[chromium-blink-merge.git] / tools / clang / blink_gc_plugin / tests / trace_collections.h
blob219b0561a10e8d5e5134d2d1c119e0ba5616d515
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef TRACE_COLLECTIONS_H_
6 #define TRACE_COLLECTIONS_H_
8 #include "heap/stubs.h"
10 namespace blink {
12 class HeapObject : public GarbageCollected<HeapObject> {
13 public:
14 void trace(Visitor*);
15 private:
16 HeapVector<Member<HeapObject> > m_heapVector;
17 Vector<Member<HeapObject>, 0, HeapAllocator> m_wtfVector;
19 HeapDeque<Member<HeapObject> > m_heapDeque;
20 Deque<Member<HeapObject>, 0, HeapAllocator> m_wtfDeque;
22 HeapHashSet<Member<HeapObject> > m_heapSet;
23 HashSet<Member<HeapObject>, void, HeapAllocator> m_wtfSet;
25 HeapListHashSet<Member<HeapObject> > m_heapListSet;
26 ListHashSet<Member<HeapObject>, void, HeapAllocator> m_wtfListSet;
28 HeapLinkedHashSet<Member<HeapObject> > m_heapLinkedSet;
29 LinkedHashSet<Member<HeapObject>, void, HeapAllocator> m_wtfLinkedSet;
31 HeapHashCountedSet<Member<HeapObject> > m_heapCountedSet;
32 HashCountedSet<Member<HeapObject>, void, HeapAllocator> m_wtfCountedSet;
34 HeapHashMap<int, Member<HeapObject> > m_heapMapKey;
35 HeapHashMap<Member<HeapObject>, int > m_heapMapVal;
36 HashMap<int, Member<HeapObject>, void, void, void, HeapAllocator>
37 m_wtfMapKey;
38 HashMap<Member<HeapObject>, int, void, void, void, HeapAllocator>
39 m_wtfMapVal;
44 #endif