root/tools/clang/blink_gc_plugin/tests/garbage_collected_mixin.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef GARBAGE_COLLECTED_MIXIN_H_
#define GARBAGE_COLLECTED_MIXIN_H_

#include "heap/stubs.h"

namespace WebCore {

class Mixin : public GarbageCollectedMixin {
public:
    void trace(Visitor*);
private:
    Member<Mixin> m_self;
};

class HeapObject : public GarbageCollected<HeapObject>, public Mixin {
    USING_GARBAGE_COLLECTED_MIXIN(HeapObject);
public:
    void trace(Visitor*);
private:
    Member<Mixin> m_mix;
};

}

#endif

/* [<][>][^][v][top][bottom][index][help] */