| Index: tools/clang/blink_gc_plugin/tests/garbage_collected_mixin.h
|
| diff --git a/tools/clang/blink_gc_plugin/tests/garbage_collected_mixin.h b/tools/clang/blink_gc_plugin/tests/garbage_collected_mixin.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..3c6f86869752c181f54893957ff7a2f59e1f8a71
|
| --- /dev/null
|
| +++ b/tools/clang/blink_gc_plugin/tests/garbage_collected_mixin.h
|
| @@ -0,0 +1,29 @@
|
| +// 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 blink {
|
| +
|
| +class Mixin : public GarbageCollectedMixin {
|
| +public:
|
| + virtual void trace(Visitor*) override;
|
| +private:
|
| + Member<Mixin> m_self;
|
| +};
|
| +
|
| +class HeapObject : public GarbageCollected<HeapObject>, public Mixin {
|
| + USING_GARBAGE_COLLECTED_MIXIN(HeapObject);
|
| +public:
|
| + virtual void trace(Visitor*) override;
|
| +private:
|
| + Member<Mixin> m_mix;
|
| +};
|
| +
|
| +}
|
| +
|
| +#endif
|
|
|