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

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

Issue 2454433002: [Extensions + Blink] Account for user gesture in v8 function calls (Closed)
Patch Set: nits 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 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..b2ca6875465e8ce2f05c9a26c1648bb9d4921e32 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
@@ -54,6 +55,7 @@ class SuspendableScriptExecutor final
private:
SuspendableScriptExecutor(LocalFrame*,
+ ScriptState*,
WebScriptExecutionCallback*,
Executor*);
@@ -63,7 +65,10 @@ class SuspendableScriptExecutor final
void executeAndDestroySelf();
void dispose();
+ // TODO(devlin): m_frame is likely redundant with context accessor on
+ // SuspendableTimer.
Member<LocalFrame> m_frame;
+ RefPtr<ScriptState> m_scriptState;
WebScriptExecutionCallback* m_callback;
SelfKeepAlive<SuspendableScriptExecutor> m_keepAlive;

Powered by Google App Engine
This is Rietveld 408576698