Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: mojo/shell/switches.cc

Issue 1091513005: Separate mojo/shell into a runner and the application manager (shell) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/shell/switches.h ('k') | mojo/shell/task_runners.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/shell/switches.h" 5 #include "mojo/shell/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
12 // path that is used is sent over IPC.
13 const char kApp[] = "app";
14
15 // Used internally by the main process to indicate that a new process should be
16 // a child process. Not for user use.
17 const char kChildProcess[] = "child-process";
18
19 // Comma separated list like:
20 // text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo
21 const char kContentHandlers[] = "content-handlers";
22
23 // Force dynamically loaded apps / services to be loaded irrespective of cache
24 // instructions.
25 const char kDisableCache[] = "disable-cache";
26
27 // If set apps downloaded are not deleted. 11 // If set apps downloaded are not deleted.
28 const char kDontDeleteOnDownload[] = "dont-delete-on-download"; 12 const char kDontDeleteOnDownload[] = "dont-delete-on-download";
29 13
30 // Load apps in separate processes.
31 // TODO(vtl): Work in progress; doesn't work. Flip this to "disable" (or maybe
32 // change it to "single-process") when it works.
33 const char kEnableMultiprocess[] = "enable-multiprocess";
34
35 // In multiprocess mode, force these apps to be loaded in the main process.
36 // Comma-separate list of URLs. Example:
37 // --force-in-process=mojo:native_viewport_service,mojo:network_service
38 const char kForceInProcess[] = "force-in-process";
39
40 // Print the usage message and exit.
41 const char kHelp[] = "help";
42
43 // Specify origin to map to base url. See url_resolver.cc for details.
44 // Can be used multiple times.
45 const char kMapOrigin[] = "map-origin";
46
47 // Map mojo: URLs to a shared library of similar name at this origin. See
48 // url_resolver.cc for details.
49 const char kOrigin[] = "origin";
50
51 // If set apps downloaded are saved in with a predictable filename, to help 14 // If set apps downloaded are saved in with a predictable filename, to help
52 // remote debugging: when gdb is used through gdbserver, it needs to be able to 15 // remote debugging: when gdb is used through gdbserver, it needs to be able to
53 // find locally any loaded library. For this, gdb use the filename of the 16 // find locally any loaded library. For this, gdb use the filename of the
54 // library. When using this flag, the application are named with the sha256 of 17 // library. When using this flag, the application are named with the sha256 of
55 // their content. 18 // their content.
56 const char kPredictableAppFilenames[] = "predictable-app-filenames"; 19 const char kPredictableAppFilenames[] = "predictable-app-filenames";
57 20
58 // Starts tracing when the shell starts up, saving a trace file on disk after 5
59 // seconds or when the shell exits.
60 const char kTraceStartup[] = "trace-startup";
61
62 // Specifies a set of mappings to apply when resolving urls. The value is a set
63 // of ',' separated mappings, where each mapping consists of a pair of urls
64 // giving the to/from url to map. For example, 'a=b,c=d' contains two mappings,
65 // the first maps 'a' to 'b' and the second 'c' to 'd'.
66 const char kURLMappings[] = "url-mappings";
67
68 } // namespace switches 21 } // namespace switches
OLDNEW
« no previous file with comments | « mojo/shell/switches.h ('k') | mojo/shell/task_runners.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698