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

Side by Side Diff: shell/switches.cc

Issue 1354623002: Force offline by default for warm benchmarks. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 3 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/switches.h ('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/macros.h" 7 #include "base/macros.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 28 matching lines...) Expand all
39 // Load apps in separate processes. 39 // Load apps in separate processes.
40 // TODO(vtl): Work in progress; doesn't work. Flip this to "disable" (or maybe 40 // TODO(vtl): Work in progress; doesn't work. Flip this to "disable" (or maybe
41 // change it to "single-process") when it works. 41 // change it to "single-process") when it works.
42 const char kEnableMultiprocess[] = "enable-multiprocess"; 42 const char kEnableMultiprocess[] = "enable-multiprocess";
43 43
44 // In multiprocess mode, force these apps to be loaded in the main process. 44 // In multiprocess mode, force these apps to be loaded in the main process.
45 // Comma-separate list of URLs. Example: 45 // Comma-separate list of URLs. Example:
46 // --force-in-process=mojo:native_viewport_service,mojo:network_service 46 // --force-in-process=mojo:native_viewport_service,mojo:network_service
47 const char kForceInProcess[] = "force-in-process"; 47 const char kForceInProcess[] = "force-in-process";
48 48
49 // Forces offline by default mode, even for local URLs.
50 const char kForceOfflineByDefault[] = "force-offline-by-default";
51
49 // Print the usage message and exit. 52 // Print the usage message and exit.
50 const char kHelp[] = "help"; 53 const char kHelp[] = "help";
51 54
52 // Specify origin to map to base url. See url_resolver.cc for details. 55 // Specify origin to map to base url. See url_resolver.cc for details.
53 // Can be used multiple times. 56 // Can be used multiple times.
54 const char kMapOrigin[] = "map-origin"; 57 const char kMapOrigin[] = "map-origin";
55 58
56 // Map mojo: URLs to a shared library of similar name at this origin. See 59 // Map mojo: URLs to a shared library of similar name at this origin. See
57 // url_resolver.cc for details. 60 // url_resolver.cc for details.
58 const char kOrigin[] = "origin"; 61 const char kOrigin[] = "origin";
(...skipping 18 matching lines...) Expand all
77 80
78 // Switches valid for the main process (i.e., that the user may pass in). 81 // Switches valid for the main process (i.e., that the user may pass in).
79 const char* kSwitchArray[] = {kV, 82 const char* kSwitchArray[] = {kV,
80 kArgsFor, 83 kArgsFor,
81 kContentHandlers, 84 kContentHandlers,
82 kCPUProfile, 85 kCPUProfile,
83 kDisableCache, 86 kDisableCache,
84 kDontDeleteOnDownload, 87 kDontDeleteOnDownload,
85 kEnableMultiprocess, 88 kEnableMultiprocess,
86 kForceInProcess, 89 kForceInProcess,
90 kForceOfflineByDefault,
87 kHelp, 91 kHelp,
88 kMapOrigin, 92 kMapOrigin,
89 kOrigin, 93 kOrigin,
90 kTraceStartup, 94 kTraceStartup,
91 kTraceStartupDuration, 95 kTraceStartupDuration,
92 kTraceStartupOutputName, 96 kTraceStartupOutputName,
93 kURLMappings}; 97 kURLMappings};
94 98
95 const std::set<std::string> GetAllSwitches() { 99 const std::set<std::string> GetAllSwitches() {
96 std::set<std::string> switch_set; 100 std::set<std::string> switch_set;
97 101
98 for (size_t i = 0; i < arraysize(kSwitchArray); ++i) 102 for (size_t i = 0; i < arraysize(kSwitchArray); ++i)
99 switch_set.insert(kSwitchArray[i]); 103 switch_set.insert(kSwitchArray[i]);
100 return switch_set; 104 return switch_set;
101 } 105 }
102 106
103 } // namespace switches 107 } // namespace switches
OLDNEW
« no previous file with comments | « shell/switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698