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

Unified Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2633253002: Split content script injections into multiple tasks (Closed)
Patch Set: comments addressed Created 3 years, 9 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/public/web/WebLocalFrame.h
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h
index 6d1beeed3363daa3d5c7272f51c45cb47efb6448..23bd2401edbd05c5f0ee3e14304287579ce5add6 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -249,6 +249,15 @@ class WebLocalFrame : public WebFrame {
v8::Local<v8::Value> argv[],
WebScriptExecutionCallback*) = 0;
+ enum ScriptExecutionType {
+ // Execute script synchronously, unless the page is suspended.
+ Synchronous,
+ // Execute script asynchronously.
+ Asynchronous,
+ // Execute script asynchronously, blocking the window.onload event.
+ AsynchronousBlockingOnload
+ };
+
// worldID must be > 0 (as 0 represents the main world).
// worldID must be < EmbedderWorldIdLimit, high number used internally.
virtual void requestExecuteScriptInIsolatedWorld(
@@ -256,6 +265,7 @@ class WebLocalFrame : public WebFrame {
const WebScriptSource* sourceIn,
unsigned numSources,
bool userGesture,
+ ScriptExecutionType,
WebScriptExecutionCallback*) = 0;
// Associates an isolated world with human-readable name which is useful for
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | third_party/WebKit/public/web/WebScriptExecutionCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698