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

Side by Side Diff: third_party/WebKit/Source/platform/heap/WrapperVisitor.h

Issue 2840163002: DOM: NodeIterator.filter and TreeWalker.filter should return values which were specified to createN… (Closed)
Patch Set: Move ToV8() to ToV8ForCore.h, etc. 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeWalker.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WrapperVisitor_h 5 #ifndef WrapperVisitor_h
6 #define WrapperVisitor_h 6 #define WrapperVisitor_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "platform/wtf/Allocator.h" 9 #include "platform/wtf/Allocator.h"
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 template <typename T> 132 template <typename T>
133 void TraceWrappersWithManualWriteBarrier(const WeakMember<T>& t) const { 133 void TraceWrappersWithManualWriteBarrier(const WeakMember<T>& t) const {
134 TraceWrappers(t.Get()); 134 TraceWrappers(t.Get());
135 } 135 }
136 template <typename T> 136 template <typename T>
137 void TraceWrappersWithManualWriteBarrier(const T* traceable) const { 137 void TraceWrappersWithManualWriteBarrier(const T* traceable) const {
138 TraceWrappers(traceable); 138 TraceWrappers(traceable);
139 } 139 }
140 140
141 // TODO(mlippautz): Add |template <typename T> TraceWrappers(const
142 // TraceWrapperV8Reference<T>&)|.
141 virtual void TraceWrappers( 143 virtual void TraceWrappers(
142 const TraceWrapperV8Reference<v8::Value>&) const = 0; 144 const TraceWrapperV8Reference<v8::Value>&) const = 0;
143 virtual void MarkWrapper(const v8::PersistentBase<v8::Value>*) const = 0; 145 virtual void MarkWrapper(const v8::PersistentBase<v8::Value>*) const = 0;
144 146
145 virtual void DispatchTraceWrappers(const TraceWrapperBase*) const = 0; 147 virtual void DispatchTraceWrappers(const TraceWrapperBase*) const = 0;
146 148
147 virtual bool MarkWrapperHeader(HeapObjectHeader*) const = 0; 149 virtual bool MarkWrapperHeader(HeapObjectHeader*) const = 0;
148 150
149 virtual void MarkWrappersInAllWorlds(const ScriptWrappable*) const = 0; 151 virtual void MarkWrappersInAllWorlds(const ScriptWrappable*) const = 0;
150 void MarkWrappersInAllWorlds(const TraceWrapperBase*) const { 152 void MarkWrappersInAllWorlds(const TraceWrapperBase*) const {
(...skipping 15 matching lines...) Expand all
166 virtual bool PushToMarkingDeque( 168 virtual bool PushToMarkingDeque(
167 void (*trace_wrappers_callback)(const WrapperVisitor*, const void*), 169 void (*trace_wrappers_callback)(const WrapperVisitor*, const void*),
168 HeapObjectHeader* (*heap_object_header_callback)(const void*), 170 HeapObjectHeader* (*heap_object_header_callback)(const void*),
169 void (*missed_write_barrier_callback)(void), 171 void (*missed_write_barrier_callback)(void),
170 const void*) const = 0; 172 const void*) const = 0;
171 }; 173 };
172 174
173 } // namespace blink 175 } // namespace blink
174 176
175 #endif // WrapperVisitor_h 177 #endif // WrapperVisitor_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/TreeWalker.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698