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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.h

Issue 2458573002: bindings: Store ScriptState in generated callback functions (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.h b/third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.h
index faaf114272e4b8e6bb1fb635f6d23453dd528002..286d613ee6d81431452793c63eb868198f9dc1e7 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/StringSequenceCallbackFunctionLongSequenceArg.h
@@ -22,9 +22,9 @@ class ScriptState;
class CORE_EXPORT StringSequenceCallbackFunctionLongSequenceArg final : public GarbageCollectedFinalized<StringSequenceCallbackFunctionLongSequenceArg>,
public TraceWrapperBase {
public:
- static StringSequenceCallbackFunctionLongSequenceArg* create(v8::Isolate* isolate, v8::Local<v8::Function> callback)
+ static StringSequenceCallbackFunctionLongSequenceArg* create(ScriptState* scriptState, v8::Local<v8::Function> callback)
{
- return new StringSequenceCallbackFunctionLongSequenceArg(isolate, callback);
+ return new StringSequenceCallbackFunctionLongSequenceArg(scriptState, callback);
}
~StringSequenceCallbackFunctionLongSequenceArg() = default;
@@ -32,7 +32,7 @@ public:
DECLARE_TRACE();
DECLARE_TRACE_WRAPPERS();
- bool call(ScriptState* scriptState, ScriptWrappable* scriptWrappable, const Vector<int>& arg, Vector<String>& returnValue);
+ bool call(ScriptWrappable* scriptWrappable, const Vector<int>& arg, Vector<String>& returnValue);
v8::Local<v8::Function> v8Value(v8::Isolate* isolate)
{
@@ -46,7 +46,9 @@ public:
}
private:
- StringSequenceCallbackFunctionLongSequenceArg(v8::Isolate* isolate, v8::Local<v8::Function>);
+ StringSequenceCallbackFunctionLongSequenceArg(ScriptState*, v8::Local<v8::Function>);
+
+ RefPtr<ScriptState> m_scriptState;
ScopedPersistent<v8::Function> m_callback;
};

Powered by Google App Engine
This is Rietveld 408576698