| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! | 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! |
| 6 | 6 |
| 7 // clang-format off | 7 // clang-format off |
| 8 | 8 |
| 9 #ifndef VoidCallbackFunctionModules_h | 9 #ifndef VoidCallbackFunctionModules_h |
| 10 #define VoidCallbackFunctionModules_h | 10 #define VoidCallbackFunctionModules_h |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 | 38 |
| 39 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object
>& wrapper) { | 39 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object
>& wrapper) { |
| 40 DCHECK(!m_callback.isEmpty()); | 40 DCHECK(!m_callback.isEmpty()); |
| 41 m_callback.setReference(wrapper, isolate); | 41 m_callback.setReference(wrapper, isolate); |
| 42 } | 42 } |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 VoidCallbackFunctionModules(ScriptState*, v8::Local<v8::Function>); | 45 VoidCallbackFunctionModules(ScriptState*, v8::Local<v8::Function>); |
| 46 | 46 |
| 47 RefPtr<ScriptState> m_scriptState; | 47 RefPtr<ScriptState> m_scriptState; |
| 48 ScopedPersistent<v8::Function> m_callback; | 48 TraceWrapperV8Reference<v8::Function> m_callback; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace blink | 51 } // namespace blink |
| 52 | 52 |
| 53 #endif // VoidCallbackFunctionModules_h | 53 #endif // VoidCallbackFunctionModules_h |
| OLD | NEW |