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

Unified Diff: headless/app/headless_shell_switches.cc

Issue 2219143002: Add a --virtual-time-budget option to headless_shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
« headless/app/headless_shell.cc ('K') | « headless/app/headless_shell_switches.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/app/headless_shell_switches.cc
diff --git a/headless/app/headless_shell_switches.cc b/headless/app/headless_shell_switches.cc
index c748b9b133705dcb76c49fada18e738040cac9c6..ea80e1618705e3aae02196a34470e297492da0a2 100644
--- a/headless/app/headless_shell_switches.cc
+++ b/headless/app/headless_shell_switches.cc
@@ -34,6 +34,13 @@ const char kUseGL[] = "use-gl";
// Directory where the browser stores the user profile.
const char kUserDataDir[] = "user-data-dir";
+// Whether or not a virtual time limit should be used to decide when the page is
+// ready. The idea being that the renderer's view of time is suspended while
+// there are network requests pending and its then able to fast forwards timers
+// until the virtual time threshold is reached at which point the page is deemed
+// ready.
+const char kVirtualTime[] = "virtual-time";
+
// Sets the initial window size. Provided as string in the format "800x600".
const char kWindowSize[] = "window-size";
« headless/app/headless_shell.cc ('K') | « headless/app/headless_shell_switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698