| Index: mojo/shell/switches.cc
|
| diff --git a/mojo/shell/switches.cc b/mojo/shell/switches.cc
|
| index bb159b5b8bd306b212d4e9edf2f3335318dfaef7..80d2e5b7a9911b86f0a22401f8ed9e5f14dbc8ca 100644
|
| --- a/mojo/shell/switches.cc
|
| +++ b/mojo/shell/switches.cc
|
| @@ -4,6 +4,8 @@
|
|
|
| #include "mojo/shell/switches.h"
|
|
|
| +#include "base/basictypes.h"
|
| +
|
| namespace switches {
|
|
|
| // Specify configuration arguments for a Mojo application URL. For example:
|
| @@ -49,4 +51,25 @@ const char kSpy[] = "spy";
|
| // first maps 'a' to 'b' and the second 'c' to 'd'.
|
| const char kURLMappings[] = "url-mappings";
|
|
|
| +const char* kSwitchArray[] = {
|
| + kArgsFor,
|
| + kChildProcessType,
|
| + kContentHandlers,
|
| + kDisableCache,
|
| + kEnableExternalApplications,
|
| + kEnableMultiprocess,
|
| + kHelp,
|
| + kOrigin,
|
| + kSpy,
|
| + kURLMappings
|
| +};
|
| +
|
| +const std::set<std::string> GetAllSwitches() {
|
| + std::set<std::string> switch_set;
|
| +
|
| + for (size_t i = 0; i < arraysize(kSwitchArray); ++i)
|
| + switch_set.insert(kSwitchArray[i]);
|
| + return switch_set;
|
| +}
|
| +
|
| } // namespace switches
|
|
|