Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: shell/switches.cc

Issue 973203004: Make the shell work in multiprocess mode some apps. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « shell/desktop/mojo_main.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // Map mojo: URLs to a shared library of similar name at this origin. See 52 // Map mojo: URLs to a shared library of similar name at this origin. See
53 // url_resolver.cc for details. 53 // url_resolver.cc for details.
54 const char kOrigin[] = "origin"; 54 const char kOrigin[] = "origin";
55 55
56 // Specifies a set of mappings to apply when resolving urls. The value is a set 56 // Specifies a set of mappings to apply when resolving urls. The value is a set
57 // of ',' separated mappings, where each mapping consists of a pair of urls 57 // of ',' separated mappings, where each mapping consists of a pair of urls
58 // giving the to/from url to map. For example, 'a=b,c=d' contains two mappings, 58 // giving the to/from url to map. For example, 'a=b,c=d' contains two mappings,
59 // the first maps 'a' to 'b' and the second 'c' to 'd'. 59 // the first maps 'a' to 'b' and the second 'c' to 'd'.
60 const char kURLMappings[] = "url-mappings"; 60 const char kURLMappings[] = "url-mappings";
61 61
62 // Switches valid for the main process (i.e., that the user may pass in).
62 const char* kSwitchArray[] = {kV, 63 const char* kSwitchArray[] = {kV,
63 kArgsFor, 64 kArgsFor,
64 kChildProcessType, 65 // |kChildProcessType| not for user use.
jamesr 2015/03/03 21:56:24 if it's not for user use who can use it? (why not
65 kContentHandlers, 66 kContentHandlers,
66 kDisableCache, 67 kDisableCache,
67 kEnableExternalApplications, 68 kEnableExternalApplications,
68 kEnableMultiprocess, 69 kEnableMultiprocess,
69 kHelp, 70 kHelp,
70 kMapOrigin, 71 kMapOrigin,
71 kOrigin, 72 kOrigin,
72 kURLMappings}; 73 kURLMappings};
73 74
74 const std::set<std::string> GetAllSwitches() { 75 const std::set<std::string> GetAllSwitches() {
75 std::set<std::string> switch_set; 76 std::set<std::string> switch_set;
76 77
77 for (size_t i = 0; i < arraysize(kSwitchArray); ++i) 78 for (size_t i = 0; i < arraysize(kSwitchArray); ++i)
78 switch_set.insert(kSwitchArray[i]); 79 switch_set.insert(kSwitchArray[i]);
79 return switch_set; 80 return switch_set;
80 } 81 }
81 82
82 } // namespace switches 83 } // namespace switches
OLDNEW
« no previous file with comments | « shell/desktop/mojo_main.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698