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
3 // found in the LICENSE file.
5 #include "mojo/shell/switches.h"
9 // Specify configuration arguments for a Mojo application URL. For example:
10 // --args-for='mojo://mojo_wget http://www.google.com'
11 const char kArgsFor
[] = "args-for";
13 // Used to specify the type of child process (switch values from
14 // |ChildProcess::Type|).
15 const char kChildProcessType
[] = "child-process-type";
17 // Comma separated list like:
18 // text/html,mojo://mojo_html_viewer,application/bravo,https://abarth.com/bravo
19 const char kContentHandlers
[] = "content-handlers";
21 // Force dynamically loaded apps / services to be loaded irrespective of cache
23 const char kDisableCache
[] = "disable-cache";
25 // Allow externally-running applications to discover, connect to, and register
26 // themselves with the shell.
27 // TODO(cmasone): Work in progress. Once we're sure this works, remove.
28 const char kEnableExternalApplications
[] = "enable-external-applications";
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";
35 // Print the usage message and exit.
36 const char kHelp
[] = "help";
38 // Map mojo: URLs to a shared library of similar name at this origin. See
39 // mojo_url_resolver.cc for details.
40 const char kOrigin
[] = "origin";
42 // Enables the mojo spy, which acts as a man-in-the-middle inspector for
43 // message pipes and other activities. This is work in progress.
44 const char kSpy
[] = "spy";
46 // Specifies a set of mappings to apply when resolving urls. The value is set of
47 // ',' separated mappings, where each mapping consists of a pair of urls giving
48 // the to/from url to map. For example, 'a=b,c=d' contains two mappings, the
49 // first maps 'a' to 'b' and the second 'c' to 'd'.
50 const char kURLMappings
[] = "url-mappings";
52 } // namespace switches