OLD | NEW |
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. |
11 const char kDumpDom[] = "dump-dom"; | 11 const char kDumpDom[] = "dump-dom"; |
12 | 12 |
13 // Uses a specified proxy server, overrides system settings. This switch only | 13 // Uses a specified proxy server, overrides system settings. This switch only |
14 // affects HTTP and HTTPS requests. | 14 // affects HTTP and HTTPS requests. |
15 const char kProxyServer[] = "proxy-server"; | 15 const char kProxyServer[] = "proxy-server"; |
16 | 16 |
17 // Use the given address instead of the default loopback for accepting remote | 17 // Use the given address instead of the default loopback for accepting remote |
18 // debugging connections. Should be used together with --remote-debugging-port. | 18 // debugging connections. Should be used together with --remote-debugging-port. |
19 // Note that the remote debugging protocol does not perform any authentication, | 19 // Note that the remote debugging protocol does not perform any authentication, |
20 // so exposing it too widely can be a security risk. | 20 // so exposing it too widely can be a security risk. |
21 const char kRemoteDebuggingAddress[] = "remote-debugging-address"; | 21 const char kRemoteDebuggingAddress[] = "remote-debugging-address"; |
22 | 22 |
23 // Runs a read-eval-print loop that allows the user to evaluate Javascript | 23 // Runs a read-eval-print loop that allows the user to evaluate Javascript |
24 // expressions. | 24 // expressions. |
25 const char kRepl[] = "repl"; | 25 const char kRepl[] = "repl"; |
26 | 26 |
| 27 // Save a screenshot of the loaded page. |
| 28 const char kScreenshot[] = "screenshot"; |
| 29 |
27 } // namespace switches | 30 } // namespace switches |
28 } // namespace headless | 31 } // namespace headless |
OLD | NEW |