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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/callback_function.h.tmpl

Issue 2474693002: [wrapper-tracing] Support for incrementally tracing ScopedPersistent (Closed)
Patch Set: Added bailout for tests when the flag is off Created 4 years, 1 month 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 {% filter format_blink_cpp_source_code %} 1 {% filter format_blink_cpp_source_code %}
2 2
3 {% include 'copyright_block.txt' %} 3 {% include 'copyright_block.txt' %}
4 4
5 #ifndef {{cpp_class}}_h 5 #ifndef {{cpp_class}}_h
6 #define {{cpp_class}}_h 6 #define {{cpp_class}}_h
7 7
8 {% for filename in header_includes %} 8 {% for filename in header_includes %}
9 #include "{{filename}}" 9 #include "{{filename}}"
10 {% endfor %} 10 {% endfor %}
(...skipping 24 matching lines...) Expand all
35 35
36 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object >& wrapper) { 36 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object >& wrapper) {
37 DCHECK(!m_callback.isEmpty()); 37 DCHECK(!m_callback.isEmpty());
38 m_callback.setReference(wrapper, isolate); 38 m_callback.setReference(wrapper, isolate);
39 } 39 }
40 40
41 private: 41 private:
42 {{cpp_class}}(ScriptState*, v8::Local<v8::Function>); 42 {{cpp_class}}(ScriptState*, v8::Local<v8::Function>);
43 43
44 RefPtr<ScriptState> m_scriptState; 44 RefPtr<ScriptState> m_scriptState;
45 ScopedPersistent<v8::Function> m_callback; 45 TraceWrapperV8Reference<v8::Function> m_callback;
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif // {{cpp_class}}_h 50 #endif // {{cpp_class}}_h
51 51
52 {% endfilter %}{# format_blink_cpp_source_code #} 52 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698