Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/Source/platform/bindings/TraceWrapperV8Reference.h

Issue 2843603002: Move ScriptWrappable and dependencies to platform/bindings (Closed)
Patch Set: Rebase and try again Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698