aboutsummaryrefslogtreecommitdiff
path: root/tools/clang/blink_gc_plugin/tests/legacy_naming/persistent_no_trace.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/clang/blink_gc_plugin/tests/legacy_naming/persistent_no_trace.h')
-rw-r--r--tools/clang/blink_gc_plugin/tests/legacy_naming/persistent_no_trace.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/clang/blink_gc_plugin/tests/legacy_naming/persistent_no_trace.h b/tools/clang/blink_gc_plugin/tests/legacy_naming/persistent_no_trace.h
new file mode 100644
index 00000000..c8beb996
--- /dev/null
+++ b/tools/clang/blink_gc_plugin/tests/legacy_naming/persistent_no_trace.h
@@ -0,0 +1,22 @@
+// Copyright 2016 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 PERSISTENT_NO_TRACE_H_
+#define PERSISTENT_NO_TRACE_H_
+
+#include "heap/stubs.h"
+
+namespace blink {
+
+class HeapObject : public GarbageCollected<HeapObject> {
+public:
+ void trace(Visitor*);
+private:
+ CrossThreadPersistent<HeapObject> m_crossThreadPersistent;
+ CrossThreadWeakPersistent<HeapObject> m_crossThreadWeakPersistent;
+};
+
+}
+
+#endif