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

Side by Side Diff: headless/app/headless_shell_switches.cc

Issue 2810353003: Adds a command-line flag indicating an open and listening socket to (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/chromium/src into headlessport Created 3 years, 7 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 // The background color to be used if the page doesn't specify one. Provided as 10 // The background color to be used if the page doesn't specify one. Provided as
(...skipping 21 matching lines...) Expand all
32 // Uses a specified proxy server, overrides system settings. This switch only 32 // Uses a specified proxy server, overrides system settings. This switch only
33 // affects HTTP and HTTPS requests. 33 // affects HTTP and HTTPS requests.
34 const char kProxyServer[] = "proxy-server"; 34 const char kProxyServer[] = "proxy-server";
35 35
36 // Use the given address instead of the default loopback for accepting remote 36 // Use the given address instead of the default loopback for accepting remote
37 // debugging connections. Should be used together with --remote-debugging-port. 37 // debugging connections. Should be used together with --remote-debugging-port.
38 // Note that the remote debugging protocol does not perform any authentication, 38 // Note that the remote debugging protocol does not perform any authentication,
39 // so exposing it too widely can be a security risk. 39 // so exposing it too widely can be a security risk.
40 const char kRemoteDebuggingAddress[] = "remote-debugging-address"; 40 const char kRemoteDebuggingAddress[] = "remote-debugging-address";
41 41
42 // The given value is the fd of a socket already opened by the parent process.
43 // This allows automation to provide a listening socket for clients to connect
44 // to before chrome is fully fired up. In particular, a parent process can
45 // open the port, exec headles chrome, and connect to the devtools port
46 // immediately. Waiting for chrome to be ready is then handled by the first
47 // read from the port, which will block until chrome is ready. No polling is
48 // needed.
49 const char kRemoteDebuggingSocketFd[] = "remote-debugging-socket-fd";
50
42 // Runs a read-eval-print loop that allows the user to evaluate Javascript 51 // Runs a read-eval-print loop that allows the user to evaluate Javascript
43 // expressions. 52 // expressions.
44 const char kRepl[] = "repl"; 53 const char kRepl[] = "repl";
45 54
46 // Save a screenshot of the loaded page. 55 // Save a screenshot of the loaded page.
47 const char kScreenshot[] = "screenshot"; 56 const char kScreenshot[] = "screenshot";
48 57
49 // Issues a stop after the specified number of milliseconds. This cancels all 58 // Issues a stop after the specified number of milliseconds. This cancels all
50 // navigation and causes the DOMContentLoaded event to fire. 59 // navigation and causes the DOMContentLoaded event to fire.
51 const char kTimeout[] = "timeout"; 60 const char kTimeout[] = "timeout";
(...skipping 14 matching lines...) Expand all
66 // network fetches have completed, timers fire and if the system runs out of 75 // network fetches have completed, timers fire and if the system runs out of
67 // virtual time is fastforwarded so the next timer fires immediatley, until the 76 // virtual time is fastforwarded so the next timer fires immediatley, until the
68 // specified virtual time budget is exhausted. 77 // specified virtual time budget is exhausted.
69 const char kVirtualTimeBudget[] = "virtual-time-budget"; 78 const char kVirtualTimeBudget[] = "virtual-time-budget";
70 79
71 // Sets the initial window size. Provided as string in the format "800,600". 80 // Sets the initial window size. Provided as string in the format "800,600".
72 const char kWindowSize[] = "window-size"; 81 const char kWindowSize[] = "window-size";
73 82
74 } // namespace switches 83 } // namespace switches
75 } // namespace headless 84 } // namespace headless
OLDNEW
« no previous file with comments | « headless/app/headless_shell_switches.h ('k') | headless/lib/browser/headless_browser_main_parts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698