| 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 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| 11 // Used just for debugging to make it easier to attach debuggers. The actual app | 11 // Used just for debugging, to make it easier to attach debuggers. The actual |
| 12 // path that is used is sent over IPC. | 12 // app path that is used is sent over IPC. |
| 13 const char kApp[] = "app"; | 13 const char kApp[] = "app"; |
| 14 | 14 |
| 15 // Used internally by the main process to indicate that a new process should be | 15 // Used internally by the main process to indicate that a new process should be |
| 16 // a child process. Not for user use. | 16 // a child process. Not for user use. |
| 17 const char kChildProcess[] = "child-process"; | 17 const char kChildProcess[] = "child-process"; |
| 18 | 18 |
| 19 // Comma separated list like: | 19 // Comma separated list like: |
| 20 // text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo | 20 // text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo |
| 21 const char kContentHandlers[] = "content-handlers"; | 21 const char kContentHandlers[] = "content-handlers"; |
| 22 | 22 |
| 23 // Force dynamically loaded apps / services to be loaded irrespective of cache | 23 // Force dynamically loaded apps or services to be loaded irrespective of cache |
| 24 // instructions. | 24 // instructions. |
| 25 const char kDisableCache[] = "disable-cache"; | 25 const char kDisableCache[] = "disable-cache"; |
| 26 | 26 |
| 27 // In multiprocess mode, force these apps to be loaded in the main process. | 27 // In multiprocess mode, force these apps to be loaded in the main process. |
| 28 // Comma-separate list of URLs. Example: | 28 // This is a comma-separated list of URLs. Example: |
| 29 // --force-in-process=mojo:native_viewport_service,mojo:network_service | 29 // --force-in-process=mojo:native_viewport_service,mojo:network_service |
| 30 const char kForceInProcess[] = "force-in-process"; | 30 const char kForceInProcess[] = "force-in-process"; |
| 31 | 31 |
| 32 // Print the usage message and exit. | 32 // Print the usage message and exit. |
| 33 const char kHelp[] = "help"; | 33 const char kHelp[] = "help"; |
| 34 | 34 |
| 35 // Specify origin to map to base url. See url_resolver.cc for details. | 35 // Specify origin to map to base url. See url_resolver.cc for details. |
| 36 // Can be used multiple times. | 36 // Can be used multiple times. |
| 37 const char kMapOrigin[] = "map-origin"; | 37 const char kMapOrigin[] = "map-origin"; |
| 38 | 38 |
| 39 // Map mojo: URLs to a shared library of similar name at this origin. See | 39 // Map mojo: URLs to a shared library of similar name at this origin. See |
| 40 // url_resolver.cc for details. | 40 // url_resolver.cc for details. |
| 41 const char kOrigin[] = "origin"; | 41 const char kOrigin[] = "origin"; |
| 42 | 42 |
| 43 // Starts tracing when the shell starts up, saving a trace file on disk after 5 | 43 // Starts tracing when the shell starts up, saving a trace file on disk after 5 |
| 44 // seconds or when the shell exits. | 44 // seconds or when the shell exits. |
| 45 const char kTraceStartup[] = "trace-startup"; | 45 const char kTraceStartup[] = "trace-startup"; |
| 46 | 46 |
| 47 // Specifies a set of mappings to apply when resolving urls. The value is a set | 47 // Specifies a set of mappings to apply when resolving URLs. The value is a set |
| 48 // of ',' separated mappings, where each mapping consists of a pair of urls | 48 // of comma-separated mappings, where each mapping consists of a pair of URLs |
| 49 // giving the to/from url to map. For example, 'a=b,c=d' contains two mappings, | 49 // giving the to/from URLs to map. For example, 'a=b,c=d' contains two mappings, |
| 50 // the first maps 'a' to 'b' and the second 'c' to 'd'. | 50 // the first maps 'a' to 'b' and the second 'c' to 'd'. |
| 51 const char kURLMappings[] = "url-mappings"; | 51 const char kURLMappings[] = "url-mappings"; |
| 52 | 52 |
| 53 // When this is set, we create a temporary user data dir for the process, and | 53 // When this is set, we create a temporary user data dir for the process, and |
| 54 // add a flag so kUserDataDir points to it. | 54 // add a flag so kUserDataDir points to it. |
| 55 const char kUseTemporaryUserDataDir[] = "use-temporary-user-data-dir"; | 55 const char kUseTemporaryUserDataDir[] = "use-temporary-user-data-dir"; |
| 56 | 56 |
| 57 // Specifies the user data directory. This is the one directory which stores | 57 // Specifies the user data directory. This is the one directory which stores |
| 58 // all persistent data. | 58 // all persistent data. |
| 59 const char kUserDataDir[] = "user-data-dir"; | 59 const char kUserDataDir[] = "user-data-dir"; |
| 60 | 60 |
| 61 } // namespace switches | 61 } // namespace switches |
| OLD | NEW |