OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "mojo/runner/switches.h" | 5 #include "mojo/runner/switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // Used internally by the main process to indicate that a new process should be | 9 // Used internally by the main process to indicate that a new process should be |
10 // a child process. Takes the absolute path to the mojo application to load as | 10 // a child process. Takes the absolute path to the mojo application to load as |
11 // an argument. Not for user use. | 11 // an argument. Not for user use. |
12 const char kChildProcess[] = "child-process"; | 12 const char kChildProcess[] = "child-process"; |
13 | 13 |
14 // Comma separated list like: | 14 // Comma separated list like: |
15 // text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo | 15 // text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo |
16 const char kContentHandlers[] = "content-handlers"; | 16 const char kContentHandlers[] = "content-handlers"; |
17 | 17 |
18 // Used internally to delete a loaded application after we load it. Used for | |
19 // transient applications. Not for user use. | |
20 const char kDeleteAfterLoad[] = "delete-after-load"; | |
21 | |
22 // Enables the sandbox on this process. | 18 // Enables the sandbox on this process. |
23 const char kEnableSandbox[] = "enable-sandbox"; | 19 const char kEnableSandbox[] = "enable-sandbox"; |
24 | 20 |
25 // In multiprocess mode, force these apps to be loaded in the main process. | 21 // In multiprocess mode, force these apps to be loaded in the main process. |
26 // This is a comma-separated list of URLs. Example: | 22 // This is a comma-separated list of URLs. Example: |
27 // --force-in-process=mojo:native_viewport_service,mojo:network_service | 23 // --force-in-process=mojo:native_viewport_service,mojo:network_service |
28 const char kForceInProcess[] = "force-in-process"; | 24 const char kForceInProcess[] = "force-in-process"; |
29 | 25 |
30 // Print the usage message and exit. | 26 // Print the usage message and exit. |
31 const char kHelp[] = "help"; | 27 const char kHelp[] = "help"; |
(...skipping 10 matching lines...) Expand all Loading... |
42 | 38 |
43 // When this is set, we create a temporary user data dir for the process, and | 39 // When this is set, we create a temporary user data dir for the process, and |
44 // add a flag so kUserDataDir points to it. | 40 // add a flag so kUserDataDir points to it. |
45 const char kUseTemporaryUserDataDir[] = "use-temporary-user-data-dir"; | 41 const char kUseTemporaryUserDataDir[] = "use-temporary-user-data-dir"; |
46 | 42 |
47 // Specifies the user data directory. This is the one directory which stores | 43 // Specifies the user data directory. This is the one directory which stores |
48 // all persistent data. | 44 // all persistent data. |
49 const char kUserDataDir[] = "user-data-dir"; | 45 const char kUserDataDir[] = "user-data-dir"; |
50 | 46 |
51 } // namespace switches | 47 } // namespace switches |
OLD | NEW |