Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / tools / clang / blink_gc_plugin / tests / weak_fields_require_tracing.h
blobc6850e6d2122559372474109dc8d628105f22115
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 WEAK_FIELDS_REQUIRE_TRACING_H_
6 #define WEAK_FIELDS_REQUIRE_TRACING_H_
8 #include "heap/stubs.h"
10 namespace blink {
12 class HeapObject : public GarbageCollected<HeapObject> {
13 public:
14 void trace(Visitor*);
15 void clearWeakMembers(Visitor*);
16 private:
17 Member<HeapObject> m_obj1;
18 WeakMember<HeapObject> m_obj2;
19 WeakMember<HeapObject> m_obj3;
20 HeapHashSet<WeakMember<HeapObject> > m_set1;
21 HeapHashSet<WeakMember<HeapObject> > m_set2;
26 #endif