OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "shell/switches.h" | 5 #include "shell/switches.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 | 8 |
9 namespace switches { | 9 namespace switches { |
10 | 10 |
11 namespace { | 11 namespace { |
12 // This controls logging verbosity. It's not strictly a switch for mojo_shell, | 12 // This controls logging verbosity. It's not strictly a switch for mojo_shell, |
13 // and isn't included in the public switches, but is included here so that it | 13 // and isn't included in the public switches, but is included here so that it |
14 // doesn't trigger an error at startup. | 14 // doesn't trigger an error at startup. |
15 const char kV[] = "v"; | 15 const char kV[] = "v"; |
16 | 16 |
17 } // namespace | 17 } // namespace |
18 | 18 |
19 // Specify configuration arguments for a Mojo application URL. For example: | 19 // Specify configuration arguments for a Mojo application URL. For example: |
20 // --args-for='mojo:wget http://www.google.com' | 20 // --args-for='mojo:wget http://www.google.com' |
21 const char kArgsFor[] = "args-for"; | 21 const char kArgsFor[] = "args-for"; |
22 | 22 |
23 // Used internally by the main process to indicate that a new process should be | 23 // Used only by the child process. Not for user use. |
24 // a child process. Not for user use. | |
25 const char kChildProcess[] = "child-process"; | 24 const char kChildProcess[] = "child-process"; |
26 | 25 |
27 // Comma separated list like: | 26 // Comma separated list like: |
28 // text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo | 27 // text/html,mojo:html_viewer,application/bravo,https://abarth.com/bravo |
29 const char kContentHandlers[] = "content-handlers"; | 28 const char kContentHandlers[] = "content-handlers"; |
30 | 29 |
31 // Starts sampling based CPU profiling when the shell starts up. The profile is | 30 // Starts sampling based CPU profiling when the shell starts up. The profile is |
32 // written to disk when the shell exits. | 31 // written to disk when the shell exits. |
33 const char kCPUProfile[] = "cpu-profile"; | 32 const char kCPUProfile[] = "cpu-profile"; |
34 | 33 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 95 |
97 const std::set<std::string> GetAllSwitches() { | 96 const std::set<std::string> GetAllSwitches() { |
98 std::set<std::string> switch_set; | 97 std::set<std::string> switch_set; |
99 | 98 |
100 for (size_t i = 0; i < arraysize(kSwitchArray); ++i) | 99 for (size_t i = 0; i < arraysize(kSwitchArray); ++i) |
101 switch_set.insert(kSwitchArray[i]); | 100 switch_set.insert(kSwitchArray[i]); |
102 return switch_set; | 101 return switch_set; |
103 } | 102 } |
104 | 103 |
105 } // namespace switches | 104 } // namespace switches |
OLD | NEW |