OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef FIELDS_ILLEGAL_TRACING_H_ |
| 6 #define FIELDS_ILLEGAL_TRACING_H_ |
| 7 |
| 8 #include "heap/stubs.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 class HeapObject; |
| 13 class PartObject; |
| 14 |
| 15 class PartObject { |
| 16 DISALLOW_ALLOCATION(); |
| 17 public: |
| 18 void trace(Visitor*); |
| 19 private: |
| 20 OwnPtr<HeapObject> m_obj1; |
| 21 std::unique_ptr<HeapObject> m_obj2; |
| 22 RefPtr<HeapObject> m_obj3; |
| 23 }; |
| 24 |
| 25 class HeapObject : public GarbageCollectedFinalized<HeapObject> { |
| 26 public: |
| 27 void trace(Visitor*); |
| 28 private: |
| 29 PartObject m_part; |
| 30 OwnPtr<HeapObject> m_obj1; |
| 31 RefPtr<HeapObject> m_obj2; |
| 32 std::unique_ptr<HeapObject> m_obj3; |
| 33 }; |
| 34 |
| 35 } |
| 36 |
| 37 #endif |
OLD | NEW |