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

Unified Diff: third_party/WebKit/Source/web/SuspendableScriptExecutor.h

Issue 2454433002: [Extensions + Blink] Account for user gesture in v8 function calls (Closed)
Patch Set: whoops 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/web/SuspendableScriptExecutor.h
diff --git a/third_party/WebKit/Source/web/SuspendableScriptExecutor.h b/third_party/WebKit/Source/web/SuspendableScriptExecutor.h
index 684318ad72d72e11dc415e393406175c0ffb0e2c..5561fbb2dc7d88f53e14826a7d1d87d2b9690093 100644
--- a/third_party/WebKit/Source/web/SuspendableScriptExecutor.h
+++ b/third_party/WebKit/Source/web/SuspendableScriptExecutor.h
@@ -15,6 +15,7 @@ namespace blink {
class LocalFrame;
class ScriptSourceCode;
+class ScriptState;
class WebScriptExecutionCallback;
class SuspendableScriptExecutor final
@@ -48,6 +49,7 @@ class SuspendableScriptExecutor final
virtual ~Executor() {}
virtual Vector<v8::Local<v8::Value>> execute(LocalFrame*) = 0;
+ virtual ScriptState* getScriptState() = 0;
DEFINE_INLINE_VIRTUAL_TRACE(){};
};

Powered by Google App Engine
This is Rietveld 408576698