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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "headless/app/headless_shell_switches.h" 5 #include "headless/app/headless_shell_switches.h"
6 6
7 namespace headless { 7 namespace headless {
8 namespace switches { 8 namespace switches {
9 9
10 // Instructs headless_shell to print document.body.innerHTML to stdout. 10 // Instructs headless_shell to print document.body.innerHTML to stdout.
(...skipping 16 matching lines...) Expand all
27 // Save a screenshot of the loaded page. 27 // Save a screenshot of the loaded page.
28 const char kScreenshot[] = "screenshot"; 28 const char kScreenshot[] = "screenshot";
29 29
30 // Sets the GL implementation to use. Use a blank string to disable GL 30 // Sets the GL implementation to use. Use a blank string to disable GL
31 // rendering. 31 // rendering.
32 const char kUseGL[] = "use-gl"; 32 const char kUseGL[] = "use-gl";
33 33
34 // Directory where the browser stores the user profile. 34 // Directory where the browser stores the user profile.
35 const char kUserDataDir[] = "user-data-dir"; 35 const char kUserDataDir[] = "user-data-dir";
36 36
37 // Whether or not a virtual time limit should be used to decide when the page is
38 // ready. The idea being that the renderer's view of time is suspended while
39 // there are network requests pending and its then able to fast forwards timers
40 // until the virtual time threshold is reached at which point the page is deemed
41 // ready.
42 const char kVirtualTime[] = "virtual-time";
43
37 // Sets the initial window size. Provided as string in the format "800x600". 44 // Sets the initial window size. Provided as string in the format "800x600".
38 const char kWindowSize[] = "window-size"; 45 const char kWindowSize[] = "window-size";
39 46
40 } // namespace switches 47 } // namespace switches
41 } // namespace headless 48 } // namespace headless
OLDNEW
« 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