summaryrefslogtreecommitdiffstats
path: root/mojo/runner/switches.cc
diff options
context:
space:
mode:
authorben <ben@chromium.org>2015-04-27 14:52:57 -0700
committerCommit bot <commit-bot@chromium.org>2015-04-27 21:52:56 +0000
commitee05293936b654dfbc42889ba374bba21bd5c453 (patch)
treede694f31a0a2f21e60750a9b92902127f08293fc /mojo/runner/switches.cc
parent9cfdfc07ef3042e059d5a51a91cbe4f13cfca341 (diff)
downloadchromium_src-ee05293936b654dfbc42889ba374bba21bd5c453.zip
chromium_src-ee05293936b654dfbc42889ba374bba21bd5c453.tar.gz
chromium_src-ee05293936b654dfbc42889ba374bba21bd5c453.tar.bz2
Separate mojo/shell into a runner and the application manager (shell)
R=sky@chromium.org BUG= Review URL: https://codereview.chromium.org/1091513005 Cr-Commit-Position: refs/heads/master@{#327148}
Diffstat (limited to 'mojo/runner/switches.cc')
-rw-r--r--mojo/runner/switches.cc58
1 files changed, 58 insertions, 0 deletions
diff --git a/mojo/runner/switches.cc b/mojo/runner/switches.cc
new file mode 100644
index 0000000..5042009
--- /dev/null
+++ b/mojo/runner/switches.cc
@@ -0,0 +1,58 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mojo/runner/switches.h"
+
+#include "base/basictypes.h"
+
+namespace switches {
+
+// Used just for debugging to make it easier to attach debuggers. The actual app
+// path that is used is sent over IPC.
+const char kApp[] = "app";
+
+// Used internally by the main process to indicate that a new process should be
+// a child process. Not for user use.
+const char kChildProcess[] = "child-process";
+
+// Comma separated list like:
+// text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo
+const char kContentHandlers[] = "content-handlers";
+
+// Force dynamically loaded apps / services to be loaded irrespective of cache
+// instructions.
+const char kDisableCache[] = "disable-cache";
+
+// Load apps in separate processes.
+// TODO(vtl): Work in progress; doesn't work. Flip this to "disable" (or maybe
+// change it to "single-process") when it works.
+const char kEnableMultiprocess[] = "enable-multiprocess";
+
+// In multiprocess mode, force these apps to be loaded in the main process.
+// Comma-separate list of URLs. Example:
+// --force-in-process=mojo:native_viewport_service,mojo:network_service
+const char kForceInProcess[] = "force-in-process";
+
+// Print the usage message and exit.
+const char kHelp[] = "help";
+
+// Specify origin to map to base url. See url_resolver.cc for details.
+// Can be used multiple times.
+const char kMapOrigin[] = "map-origin";
+
+// Map mojo: URLs to a shared library of similar name at this origin. See
+// url_resolver.cc for details.
+const char kOrigin[] = "origin";
+
+// Starts tracing when the shell starts up, saving a trace file on disk after 5
+// seconds or when the shell exits.
+const char kTraceStartup[] = "trace-startup";
+
+// Specifies a set of mappings to apply when resolving urls. The value is a set
+// of ',' separated mappings, where each mapping consists of a pair of urls
+// giving the to/from url to map. For example, 'a=b,c=d' contains two mappings,
+// the first maps 'a' to 'b' and the second 'c' to 'd'.
+const char kURLMappings[] = "url-mappings";
+
+} // namespace switches