| Index: tools/clang/blink_gc_plugin/tests/trace_if_needed.h
|
| diff --git a/tools/clang/blink_gc_plugin/tests/trace_if_needed.h b/tools/clang/blink_gc_plugin/tests/trace_if_needed.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..00b8f2296cb88d40d77165880d359295fdff24ee
|
| --- /dev/null
|
| +++ b/tools/clang/blink_gc_plugin/tests/trace_if_needed.h
|
| @@ -0,0 +1,27 @@
|
| +// 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 TRACE_IF_NEEDED_H_
|
| +#define TRACE_IF_NEEDED_H_
|
| +
|
| +#include "heap/stubs.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class HeapObject : public GarbageCollected<HeapObject> { };
|
| +
|
| +template<typename T>
|
| +class TemplatedObject : public GarbageCollected<TemplatedObject<T> > {
|
| +public:
|
| + virtual void trace(Visitor*);
|
| +private:
|
| + T m_one;
|
| + T m_two;
|
| +};
|
| +
|
| +class InstantiatedObject : public TemplatedObject<Member<HeapObject> > { };
|
| +
|
| +}
|
| +
|
| +#endif
|
|
|