| 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 | 18 // Used internally to delete a loaded application after we load it. Used for |
| 19 // transient applications. Not for user use. | 19 // transient applications. Not for user use. |
| 20 const char kDeleteAfterLoad[] = "delete-after-load"; | 20 const char kDeleteAfterLoad[] = "delete-after-load"; |
| 21 | 21 |
| 22 // Force dynamically loaded apps or services to be loaded irrespective of cache | |
| 23 // instructions. | |
| 24 const char kDisableCache[] = "disable-cache"; | |
| 25 | |
| 26 // Enables the sandbox on this process. | 22 // Enables the sandbox on this process. |
| 27 const char kEnableSandbox[] = "enable-sandbox"; | 23 const char kEnableSandbox[] = "enable-sandbox"; |
| 28 | 24 |
| 29 // In multiprocess mode, force these apps to be loaded in the main process. | 25 // In multiprocess mode, force these apps to be loaded in the main process. |
| 30 // This is a comma-separated list of URLs. Example: | 26 // This is a comma-separated list of URLs. Example: |
| 31 // --force-in-process=mojo:native_viewport_service,mojo:network_service | 27 // --force-in-process=mojo:native_viewport_service,mojo:network_service |
| 32 const char kForceInProcess[] = "force-in-process"; | 28 const char kForceInProcess[] = "force-in-process"; |
| 33 | 29 |
| 34 // Print the usage message and exit. | 30 // Print the usage message and exit. |
| 35 const char kHelp[] = "help"; | 31 const char kHelp[] = "help"; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 46 | 42 |
| 47 // When this is set, we create a temporary user data dir for the process, and | 43 // When this is set, we create a temporary user data dir for the process, and |
| 48 // add a flag so kUserDataDir points to it. | 44 // add a flag so kUserDataDir points to it. |
| 49 const char kUseTemporaryUserDataDir[] = "use-temporary-user-data-dir"; | 45 const char kUseTemporaryUserDataDir[] = "use-temporary-user-data-dir"; |
| 50 | 46 |
| 51 // Specifies the user data directory. This is the one directory which stores | 47 // Specifies the user data directory. This is the one directory which stores |
| 52 // all persistent data. | 48 // all persistent data. |
| 53 const char kUserDataDir[] = "user-data-dir"; | 49 const char kUserDataDir[] = "user-data-dir"; |
| 54 | 50 |
| 55 } // namespace switches | 51 } // namespace switches |
| OLD | NEW |