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/runner/switches.h"
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
11 // an argument. Not for user use.
12 const char kChildProcess
[] = "child-process";
14 // Comma separated list like:
15 // text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo
16 const char kContentHandlers
[] = "content-handlers";
18 // Enables the sandbox on this process.
19 const char kEnableSandbox
[] = "enable-sandbox";
21 // In multiprocess mode, force these apps to be loaded in the main process.
22 // This is a comma-separated list of URLs. Example:
23 // --force-in-process=mojo:native_viewport_service,mojo:network_service
24 const char kForceInProcess
[] = "force-in-process";
26 // Print the usage message and exit.
27 const char kHelp
[] = "help";
29 // Specify origin to map to base url. See url_resolver.cc for details.
30 // Can be used multiple times.
31 const char kMapOrigin
[] = "map-origin";
33 // Specifies a set of mappings to apply when resolving URLs. The value is a set
34 // of comma-separated mappings, where each mapping consists of a pair of URLs
35 // giving the to/from URLs to map. For example, 'a=b,c=d' contains two mappings,
36 // the first maps 'a' to 'b' and the second 'c' to 'd'.
37 const char kURLMappings
[] = "url-mappings";
39 // When this is set, we create a temporary user data dir for the process, and
40 // add a flag so kUserDataDir points to it.
41 const char kUseTemporaryUserDataDir
[] = "use-temporary-user-data-dir";
43 // Specifies the user data directory. This is the one directory which stores
44 // all persistent data.
45 const char kUserDataDir
[] = "user-data-dir";
47 } // namespace switches