| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 ScriptWrappableVisitorVerifier_h | 5 #ifndef ScriptWrappableVisitorVerifier_h |
| 6 #define ScriptWrappableVisitorVerifier_h | 6 #define ScriptWrappableVisitorVerifier_h |
| 7 | 7 |
| 8 #include "bindings/core/v8/ScriptWrappableVisitor.h" | 8 #include "platform/bindings/ScriptWrappableVisitor.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| 11 | 11 |
| 12 class ScriptWrappableVisitorVerifier : public WrapperVisitor { | 12 class ScriptWrappableVisitorVerifier : public WrapperVisitor { |
| 13 public: | 13 public: |
| 14 void DispatchTraceWrappers(const TraceWrapperBase* t) const override { | 14 void DispatchTraceWrappers(const TraceWrapperBase* t) const override { |
| 15 t->TraceWrappers(this); | 15 t->TraceWrappers(this); |
| 16 } | 16 } |
| 17 | 17 |
| 18 void TraceWrappers(const TraceWrapperV8Reference<v8::Value>&) const override { | 18 void TraceWrappers(const TraceWrapperV8Reference<v8::Value>&) const override { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 49 } | 49 } |
| 50 return false; | 50 return false; |
| 51 } | 51 } |
| 52 void MarkWrappersInAllWorlds(const ScriptWrappable*) const override {} | 52 void MarkWrappersInAllWorlds(const ScriptWrappable*) const override {} |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 mutable WTF::HashSet<HeapObjectHeader*> visited_headers_; | 55 mutable WTF::HashSet<HeapObjectHeader*> visited_headers_; |
| 56 }; | 56 }; |
| 57 } | 57 } |
| 58 #endif | 58 #endif |
| OLD | NEW |