blob: 133f0061b5d9f7a5b41c77f0138462a567d56dbb [file] [log] [blame]
// 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 CLASS_MULTIPLE_TRACE_BASES_H_
#define CLASS_MULTIPLE_TRACE_BASES_H_
#include "heap/stubs.h"
namespace blink {
class Base : public GarbageCollected<Base> {
public:
virtual void trace(Visitor*);
};
class Mixin1 : public GarbageCollectedMixin {
public:
void trace(Visitor*);
};
class Mixin2 : public GarbageCollectedMixin {
public:
void trace(Visitor*);
};
class Derived1 : public Base, public Mixin1 {
USING_GARBAGE_COLLECTED_MIXIN(Derived1);
// Requires trace method.
};
class Derived2 : public Base, public Mixin1, public Mixin2 {
USING_GARBAGE_COLLECTED_MIXIN(Derived2);
void trace(Visitor*) override;
};
}
#endif