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 app |
12 // path that is used is sent over IPC. | 12 // 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 / 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 // Load apps in separate processes. | |
28 // TODO(vtl): Work in progress; doesn't work. Flip this to "disable" (or maybe | |
29 // change it to "single-process") when it works. | |
30 const char kEnableMultiprocess[] = "enable-multiprocess"; | |
31 | |
32 // 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. |
33 // Comma-separate list of URLs. Example: | 28 // Comma-separate list of URLs. Example: |
34 // --force-in-process=mojo:native_viewport_service,mojo:network_service | 29 // --force-in-process=mojo:native_viewport_service,mojo:network_service |
35 const char kForceInProcess[] = "force-in-process"; | 30 const char kForceInProcess[] = "force-in-process"; |
36 | 31 |
37 // Print the usage message and exit. | 32 // Print the usage message and exit. |
38 const char kHelp[] = "help"; | 33 const char kHelp[] = "help"; |
39 | 34 |
40 // 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. |
41 // Can be used multiple times. | 36 // Can be used multiple times. |
42 const char kMapOrigin[] = "map-origin"; | 37 const char kMapOrigin[] = "map-origin"; |
43 | 38 |
44 // 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 |
45 // url_resolver.cc for details. | 40 // url_resolver.cc for details. |
46 const char kOrigin[] = "origin"; | 41 const char kOrigin[] = "origin"; |
47 | 42 |
48 // 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 |
49 // seconds or when the shell exits. | 44 // seconds or when the shell exits. |
50 const char kTraceStartup[] = "trace-startup"; | 45 const char kTraceStartup[] = "trace-startup"; |
51 | 46 |
52 // 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 |
53 // of ',' separated mappings, where each mapping consists of a pair of urls | 48 // of ',' separated mappings, where each mapping consists of a pair of urls |
54 // giving the to/from url to map. For example, 'a=b,c=d' contains two mappings, | 49 // giving the to/from url to map. For example, 'a=b,c=d' contains two mappings, |
55 // 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'. |
56 const char kURLMappings[] = "url-mappings"; | 51 const char kURLMappings[] = "url-mappings"; |
57 | 52 |
58 } // namespace switches | 53 } // namespace switches |
OLD | NEW |