| 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 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 | 39 |
| 40 // Load apps in separate processes. | 40 // Load apps in separate processes. |
| 41 // TODO(vtl): Work in progress; doesn't work. Flip this to "disable" (or maybe | 41 // TODO(vtl): Work in progress; doesn't work. Flip this to "disable" (or maybe |
| 42 // change it to "single-process") when it works. | 42 // change it to "single-process") when it works. |
| 43 const char kEnableMultiprocess[] = "enable-multiprocess"; | 43 const char kEnableMultiprocess[] = "enable-multiprocess"; |
| 44 | 44 |
| 45 // Print the usage message and exit. | 45 // Print the usage message and exit. |
| 46 const char kHelp[] = "help"; | 46 const char kHelp[] = "help"; |
| 47 | 47 |
| 48 // Map mojo: URLs to a shared library of similar name at this origin. See | 48 // Map mojo: URLs to a shared library of similar name at this origin. See |
| 49 // mojo_url_resolver.cc for details. | 49 // url_resolver.cc for details. |
| 50 const char kOrigin[] = "origin"; | 50 const char kOrigin[] = "origin"; |
| 51 | 51 |
| 52 // Specifies a set of mappings to apply when resolving urls. The value is set of | 52 // Specifies a set of mappings to apply when resolving urls. The value is set of |
| 53 // ',' separated mappings, where each mapping consists of a pair of urls giving | 53 // ',' separated mappings, where each mapping consists of a pair of urls giving |
| 54 // the to/from url to map. For example, 'a=b,c=d' contains two mappings, the | 54 // the to/from url to map. For example, 'a=b,c=d' contains two mappings, the |
| 55 // first maps 'a' to 'b' and the second 'c' to 'd'. | 55 // first maps 'a' to 'b' and the second 'c' to 'd'. |
| 56 const char kURLMappings[] = "url-mappings"; | 56 const char kURLMappings[] = "url-mappings"; |
| 57 | 57 |
| 58 const char* kSwitchArray[] = {kV, | 58 const char* kSwitchArray[] = {kV, |
| 59 kArgsFor, | 59 kArgsFor, |
| 60 kChildProcessType, | 60 kChildProcessType, |
| 61 kContentHandlers, | 61 kContentHandlers, |
| 62 kDisableCache, | 62 kDisableCache, |
| 63 kEnableExternalApplications, | 63 kEnableExternalApplications, |
| 64 kEnableMultiprocess, | 64 kEnableMultiprocess, |
| 65 kHelp, | 65 kHelp, |
| 66 kOrigin, | 66 kOrigin, |
| 67 kURLMappings}; | 67 kURLMappings}; |
| 68 | 68 |
| 69 const std::set<std::string> GetAllSwitches() { | 69 const std::set<std::string> GetAllSwitches() { |
| 70 std::set<std::string> switch_set; | 70 std::set<std::string> switch_set; |
| 71 | 71 |
| 72 for (size_t i = 0; i < arraysize(kSwitchArray); ++i) | 72 for (size_t i = 0; i < arraysize(kSwitchArray); ++i) |
| 73 switch_set.insert(kSwitchArray[i]); | 73 switch_set.insert(kSwitchArray[i]); |
| 74 return switch_set; | 74 return switch_set; |
| 75 } | 75 } |
| 76 | 76 |
| 77 } // namespace switches | 77 } // namespace switches |
| OLD | NEW |