Roll src/third_party/WebKit d10c917:a1123a1 (svn 198729:198730)
[chromium-blink-merge.git] / tools / clang / blink_gc_plugin / tests / class_requires_finalization_mixin.cpp
blob782810eaa7d69cb85b9af13ddd48e1b284c191a5
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 #include "class_requires_finalization_mixin.h"
7 namespace blink {
9 void MixinFinalizable::trace(Visitor* visitor)
11 visitor->trace(m_onHeap);
14 void MixinNotFinalizable::trace(Visitor* visitor)
16 visitor->trace(m_onHeap);
19 void NeedsFinalizer::trace(Visitor* visitor)
21 visitor->trace(m_obj);
22 MixinFinalizable::trace(visitor);
25 void HasFinalizer::trace(Visitor* visitor)
27 visitor->trace(m_obj);
28 MixinFinalizable::trace(visitor);
31 void NeedsNoFinalization::trace(Visitor* visitor)
33 visitor->trace(m_obj);
34 MixinNotFinalizable::trace(visitor);