Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / mojo / runner / switches.cc
blob53fed8253749dd5b084a04707ee43c10038e818c
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"
7 namespace switches {
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 // Used internally to delete a loaded application after we load it. Used for
19 // transient applications. Not for user use.
20 const char kDeleteAfterLoad[] = "delete-after-load";
22 // Force dynamically loaded apps or services to be loaded irrespective of cache
23 // instructions.
24 const char kDisableCache[] = "disable-cache";
26 // Enables the sandbox on this process.
27 const char kEnableSandbox[] = "enable-sandbox";
29 // In multiprocess mode, force these apps to be loaded in the main process.
30 // This is a comma-separated list of URLs. Example:
31 // --force-in-process=mojo:native_viewport_service,mojo:network_service
32 const char kForceInProcess[] = "force-in-process";
34 // Print the usage message and exit.
35 const char kHelp[] = "help";
37 // Specify origin to map to base url. See url_resolver.cc for details.
38 // Can be used multiple times.
39 const char kMapOrigin[] = "map-origin";
41 // Specifies a set of mappings to apply when resolving URLs. The value is a set
42 // of comma-separated mappings, where each mapping consists of a pair of URLs
43 // giving the to/from URLs to map. For example, 'a=b,c=d' contains two mappings,
44 // the first maps 'a' to 'b' and the second 'c' to 'd'.
45 const char kURLMappings[] = "url-mappings";
47 // When this is set, we create a temporary user data dir for the process, and
48 // add a flag so kUserDataDir points to it.
49 const char kUseTemporaryUserDataDir[] = "use-temporary-user-data-dir";
51 // Specifies the user data directory. This is the one directory which stores
52 // all persistent data.
53 const char kUserDataDir[] = "user-data-dir";
55 } // namespace switches