| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef TOOLS_BLINK_GC_PLUGIN_EDGE_H_ | 5 #ifndef TOOLS_BLINK_GC_PLUGIN_EDGE_H_ |
| 6 #define TOOLS_BLINK_GC_PLUGIN_EDGE_H_ | 6 #define TOOLS_BLINK_GC_PLUGIN_EDGE_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 | 9 |
| 10 #include "TracingStatus.h" | 10 #include "TracingStatus.h" |
| 11 | 11 |
| 12 class RecordInfo; | 12 class RecordInfo; |
| 13 | 13 |
| 14 class Edge; | 14 class Edge; |
| 15 class Value; | 15 class Value; |
| 16 class RawPtr; | 16 class RawPtr; |
| 17 class RefPtr; | 17 class RefPtr; |
| 18 class OwnPtr; | 18 class OwnPtr; |
| 19 class Member; | 19 class Member; |
| 20 class WeakMember; | 20 class WeakMember; |
| 21 class Persistent; | 21 class Persistent; |
| 22 class Collection; | 22 class Collection; |
| 23 | 23 |
| 24 // Bare-bones visitor. | 24 // Bare-bones visitor. |
| 25 class EdgeVisitor { | 25 class EdgeVisitor { |
| 26 public: | 26 public: |
| 27 virtual ~EdgeVisitor() {} |
| 27 virtual void VisitValue(Value*) {} | 28 virtual void VisitValue(Value*) {} |
| 28 virtual void VisitRawPtr(RawPtr*) {} | 29 virtual void VisitRawPtr(RawPtr*) {} |
| 29 virtual void VisitRefPtr(RefPtr*) {} | 30 virtual void VisitRefPtr(RefPtr*) {} |
| 30 virtual void VisitOwnPtr(OwnPtr*) {} | 31 virtual void VisitOwnPtr(OwnPtr*) {} |
| 31 virtual void VisitMember(Member*) {} | 32 virtual void VisitMember(Member*) {} |
| 32 virtual void VisitWeakMember(WeakMember*) {} | 33 virtual void VisitWeakMember(WeakMember*) {} |
| 33 virtual void VisitPersistent(Persistent*) {} | 34 virtual void VisitPersistent(Persistent*) {} |
| 34 virtual void VisitCollection(Collection*) {} | 35 virtual void VisitCollection(Collection*) {} |
| 35 }; | 36 }; |
| 36 | 37 |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 } | 237 } |
| 237 | 238 |
| 238 private: | 239 private: |
| 239 RecordInfo* info_; | 240 RecordInfo* info_; |
| 240 Members members_; | 241 Members members_; |
| 241 bool on_heap_; | 242 bool on_heap_; |
| 242 bool is_root_; | 243 bool is_root_; |
| 243 }; | 244 }; |
| 244 | 245 |
| 245 #endif // TOOLS_BLINK_GC_PLUGIN_EDGE_H_ | 246 #endif // TOOLS_BLINK_GC_PLUGIN_EDGE_H_ |
| OLD | NEW |