| 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 // The directory breakpad should store minidumps in. | 10 // The directory breakpad should store minidumps in. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Uses a specified proxy server, overrides system settings. This switch only | 24 // Uses a specified proxy server, overrides system settings. This switch only |
| 25 // affects HTTP and HTTPS requests. | 25 // affects HTTP and HTTPS requests. |
| 26 const char kProxyServer[] = "proxy-server"; | 26 const char kProxyServer[] = "proxy-server"; |
| 27 | 27 |
| 28 // Use the given address instead of the default loopback for accepting remote | 28 // Use the given address instead of the default loopback for accepting remote |
| 29 // debugging connections. Should be used together with --remote-debugging-port. | 29 // debugging connections. Should be used together with --remote-debugging-port. |
| 30 // Note that the remote debugging protocol does not perform any authentication, | 30 // Note that the remote debugging protocol does not perform any authentication, |
| 31 // so exposing it too widely can be a security risk. | 31 // so exposing it too widely can be a security risk. |
| 32 const char kRemoteDebuggingAddress[] = "remote-debugging-address"; | 32 const char kRemoteDebuggingAddress[] = "remote-debugging-address"; |
| 33 | 33 |
| 34 // The given value is the fd of a socket already opened by the parent process. |
| 35 // This allows automation to provide a listening socket for clients to connect |
| 36 // to before chrome is fully fired up. In particular, a parent process can |
| 37 // open the port, exec headles chrome, and connect to the devtools port |
| 38 // immediately. Waiting for chrome to be ready is then handled by the first |
| 39 // read from the port, which will block until chrome is ready. No polling is |
| 40 // needed. |
| 41 const char kRemoteDebuggingSocketFd[] = "remote-debugging-socket-fd"; |
| 42 |
| 34 // Runs a read-eval-print loop that allows the user to evaluate Javascript | 43 // Runs a read-eval-print loop that allows the user to evaluate Javascript |
| 35 // expressions. | 44 // expressions. |
| 36 const char kRepl[] = "repl"; | 45 const char kRepl[] = "repl"; |
| 37 | 46 |
| 38 // Save a screenshot of the loaded page. | 47 // Save a screenshot of the loaded page. |
| 39 const char kScreenshot[] = "screenshot"; | 48 const char kScreenshot[] = "screenshot"; |
| 40 | 49 |
| 41 // Issues a stop after the specified number of milliseconds. This cancels all | 50 // Issues a stop after the specified number of milliseconds. This cancels all |
| 42 // navigation and causes the DOMContentLoaded event to fire. | 51 // navigation and causes the DOMContentLoaded event to fire. |
| 43 const char kTimeout[] = "timeout"; | 52 const char kTimeout[] = "timeout"; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 55 // network fetches have completed, timers fire and if the system runs out of | 64 // network fetches have completed, timers fire and if the system runs out of |
| 56 // virtual time is fastforwarded so the next timer fires immediatley, until the | 65 // virtual time is fastforwarded so the next timer fires immediatley, until the |
| 57 // specified virtual time budget is exhausted. | 66 // specified virtual time budget is exhausted. |
| 58 const char kVirtualTimeBudget[] = "virtual-time-budget"; | 67 const char kVirtualTimeBudget[] = "virtual-time-budget"; |
| 59 | 68 |
| 60 // Sets the initial window size. Provided as string in the format "800,600". | 69 // Sets the initial window size. Provided as string in the format "800,600". |
| 61 const char kWindowSize[] = "window-size"; | 70 const char kWindowSize[] = "window-size"; |
| 62 | 71 |
| 63 } // namespace switches | 72 } // namespace switches |
| 64 } // namespace headless | 73 } // namespace headless |
| OLD | NEW |