| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 TraceWrapperV8Reference_h | 5 #ifndef TraceWrapperV8Reference_h |
| 6 #define TraceWrapperV8Reference_h | 6 #define TraceWrapperV8Reference_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 /** | 12 /** |
| 13 * TraceWrapperV8Reference is used to trace from Blink to V8. If wrapper | 13 * TraceWrapperV8Reference is used to trace from Blink to V8. If wrapper |
| 14 * tracing is disabled, the reference is a weak v8::Persistent. Otherwise, | 14 * tracing is disabled, the reference is a weak v8::Persistent. Otherwise, |
| 15 * the reference is (strongly) traced by wrapper tracing. | 15 * the reference is (strongly) traced by wrapper tracing. |
| 16 * | 16 * |
| 17 * TODO(mlippautz): Use a better handle type than v8::Persistent. | 17 * TODO(mlippautz): Use a better handle type than v8::Persistent. |
| 18 */ | 18 */ |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 ScriptWrappableVisitor::WriteBarrier(isolate, parent_, &Cast<v8::Value>()); | 66 ScriptWrappableVisitor::WriteBarrier(isolate, parent_, &Cast<v8::Value>()); |
| 67 } | 67 } |
| 68 | 68 |
| 69 v8::Persistent<T> handle_; | 69 v8::Persistent<T> handle_; |
| 70 void* parent_; | 70 void* parent_; |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 } // namespace blink | 73 } // namespace blink |
| 74 | 74 |
| 75 #endif // TraceWrapperV8Reference_h | 75 #endif // TraceWrapperV8Reference_h |
| OLD | NEW |