blob: 3136f317b292bd92a4126c04f4e4c15ed0ce5a17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|