OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 // Defines all the command-line switches used by Chrome. | 5 // Defines all the command-line switches used by Chrome. |
6 | 6 |
7 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_ | 7 #ifndef CHROME_COMMON_CHROME_SWITCHES_H_ |
8 #define CHROME_COMMON_CHROME_SWITCHES_H_ | 8 #define CHROME_COMMON_CHROME_SWITCHES_H_ |
9 | 9 |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
11 #include "base/base_switches.h" | 11 #include "base/base_switches.h" |
12 | 12 |
13 namespace switches { | 13 namespace switches { |
14 | 14 |
15 extern const wchar_t kDisableHangMonitor[]; | 15 extern const char kDisableHangMonitor[]; |
16 extern const wchar_t kDisableMetrics[]; | 16 extern const char kDisableMetrics[]; |
17 extern const wchar_t kMetricsRecordingOnly[]; | 17 extern const char kMetricsRecordingOnly[]; |
18 extern const wchar_t kBrowserAssertTest[]; | 18 extern const char kBrowserAssertTest[]; |
19 extern const wchar_t kRendererAssertTest[]; | 19 extern const char kRendererAssertTest[]; |
20 extern const wchar_t kBrowserCrashTest[]; | 20 extern const char kBrowserCrashTest[]; |
21 extern const wchar_t kRendererCrashTest[]; | 21 extern const char kRendererCrashTest[]; |
22 extern const wchar_t kRendererStartupDialog[]; | 22 extern const char kRendererStartupDialog[]; |
23 extern const wchar_t kPluginStartupDialog[]; | 23 extern const char kPluginStartupDialog[]; |
24 extern const wchar_t kPluginLauncher[]; | 24 extern const char kPluginLauncher[]; |
25 | 25 |
26 extern const wchar_t kTestingChannelID[]; | 26 extern const char kTestingChannelID[]; |
27 extern const wchar_t kHomePage[]; | 27 extern const char kHomePage[]; |
28 extern const wchar_t kRendererProcess[]; | 28 extern const char kRendererProcess[]; |
29 extern const wchar_t kZygoteProcess[]; | 29 extern const char kZygoteProcess[]; |
30 extern const wchar_t kBrowserSubprocessPath[]; | 30 extern const char kBrowserSubprocessPath[]; |
31 extern const wchar_t kPluginProcess[]; | 31 extern const char kPluginProcess[]; |
32 extern const wchar_t kWorkerProcess[]; | 32 extern const char kWorkerProcess[]; |
33 extern const wchar_t kNaClProcess[]; | 33 extern const char kNaClProcess[]; |
34 extern const wchar_t kUtilityProcess[]; | 34 extern const char kUtilityProcess[]; |
35 extern const wchar_t kProfileImportProcess[]; | 35 extern const char kProfileImportProcess[]; |
36 extern const wchar_t kSingleProcess[]; | 36 extern const char kSingleProcess[]; |
37 extern const wchar_t kProcessPerTab[]; | 37 extern const char kProcessPerTab[]; |
38 extern const wchar_t kProcessPerSite[]; | 38 extern const char kProcessPerSite[]; |
39 extern const wchar_t kInProcessPlugins[]; | 39 extern const char kInProcessPlugins[]; |
40 extern const wchar_t kNoSandbox[]; | 40 extern const char kNoSandbox[]; |
41 extern const wchar_t kDisableAltWinstation[]; | 41 extern const char kDisableAltWinstation[]; |
42 extern const wchar_t kSafePlugins[]; | 42 extern const char kSafePlugins[]; |
43 extern const wchar_t kTrustedPlugins[]; | 43 extern const char kTrustedPlugins[]; |
44 extern const wchar_t kTestSandbox[]; | 44 extern const char kTestSandbox[]; |
45 extern const wchar_t kUserDataDir[]; | 45 extern const char kUserDataDir[]; |
46 extern const wchar_t kPluginDataDir[]; | 46 extern const char kPluginDataDir[]; |
47 extern const wchar_t kDiskCacheDir[]; | 47 extern const char kDiskCacheDir[]; |
48 extern const wchar_t kDiskCacheSize[]; | 48 extern const char kDiskCacheSize[]; |
49 extern const wchar_t kMediaCacheSize[]; | 49 extern const char kMediaCacheSize[]; |
50 extern const wchar_t kEnableUserDataDirProfiles[]; | 50 extern const char kEnableUserDataDirProfiles[]; |
51 extern const wchar_t kParentProfile[]; | 51 extern const char kParentProfile[]; |
52 extern const wchar_t kApp[]; | 52 extern const char kApp[]; |
53 extern const wchar_t kDomAutomationController[]; | 53 extern const char kDomAutomationController[]; |
54 extern const wchar_t kPluginPath[]; | 54 extern const char kPluginPath[]; |
55 extern const wchar_t kUserAgent[]; | 55 extern const char kUserAgent[]; |
56 extern const wchar_t kJavaScriptFlags[]; | 56 extern const char kJavaScriptFlags[]; |
57 extern const wchar_t kCountry[]; | 57 extern const char kCountry[]; |
58 extern const wchar_t kWaitForDebuggerChildren[]; | 58 extern const char kWaitForDebuggerChildren[]; |
59 | 59 |
60 extern const wchar_t kLogFilterPrefix[]; | 60 extern const char kLogFilterPrefix[]; |
61 extern const wchar_t kEnableLogging[]; | 61 extern const char kEnableLogging[]; |
62 extern const wchar_t kLoggingLevel[]; | 62 extern const char kLoggingLevel[]; |
63 extern const wchar_t kLogPluginMessages[]; | 63 extern const char kLogPluginMessages[]; |
64 | 64 |
65 extern const wchar_t kDumpHistogramsOnExit[]; | 65 extern const char kDumpHistogramsOnExit[]; |
66 extern const wchar_t kDisableLogging[]; | 66 extern const char kDisableLogging[]; |
67 extern const wchar_t kRemoteShellPort[]; | 67 extern const char kRemoteShellPort[]; |
68 extern const wchar_t kUninstall[]; | 68 extern const char kUninstall[]; |
69 extern const wchar_t kOmniBoxPopupCount[]; | 69 extern const char kOmniBoxPopupCount[]; |
70 | 70 |
71 extern const wchar_t kAutomationClientChannelID[]; | 71 extern const char kAutomationClientChannelID[]; |
72 | 72 |
73 extern const wchar_t kRestoreLastSession[]; | 73 extern const char kRestoreLastSession[]; |
74 | 74 |
75 extern const wchar_t kRecordMode[]; | 75 extern const char kRecordMode[]; |
76 extern const wchar_t kPlaybackMode[]; | 76 extern const char kPlaybackMode[]; |
77 extern const wchar_t kNoEvents[]; | 77 extern const char kNoEvents[]; |
78 extern const wchar_t kNoJsRandomness[]; | 78 extern const char kNoJsRandomness[]; |
79 | 79 |
80 extern const wchar_t kHideIcons[]; | 80 extern const char kHideIcons[]; |
81 extern const wchar_t kShowIcons[]; | 81 extern const char kShowIcons[]; |
82 extern const wchar_t kMakeDefaultBrowser[]; | 82 extern const char kMakeDefaultBrowser[]; |
83 | 83 |
84 extern const wchar_t kProxyServer[]; | 84 extern const char kProxyServer[]; |
85 extern const wchar_t kNoProxyServer[]; | 85 extern const char kNoProxyServer[]; |
86 extern const wchar_t kProxyBypassList[]; | 86 extern const char kProxyBypassList[]; |
87 extern const wchar_t kProxyAutoDetect[]; | 87 extern const char kProxyAutoDetect[]; |
88 extern const wchar_t kProxyPacUrl[]; | 88 extern const char kProxyPacUrl[]; |
89 extern const wchar_t kWinHttpProxyResolver[]; | 89 extern const char kWinHttpProxyResolver[]; |
90 extern const wchar_t kDebugPrint[]; | 90 extern const char kDebugPrint[]; |
91 extern const wchar_t kPrint[]; | 91 extern const char kPrint[]; |
92 | 92 |
93 extern const wchar_t kDnsLogDetails[]; | 93 extern const char kDnsLogDetails[]; |
94 extern const wchar_t kDnsPrefetchDisable[]; | 94 extern const char kDnsPrefetchDisable[]; |
95 | 95 |
96 extern const wchar_t kDisableDevTools[]; | 96 extern const char kDisableDevTools[]; |
97 extern const wchar_t kAlwaysEnableDevTools[]; | 97 extern const char kAlwaysEnableDevTools[]; |
98 extern const wchar_t kEnableExtensionTimelineApi[]; | 98 extern const char kEnableExtensionTimelineApi[]; |
99 | 99 |
100 extern const wchar_t kTabCountToLoadOnSessionRestore[]; | 100 extern const char kTabCountToLoadOnSessionRestore[]; |
101 | 101 |
102 extern const wchar_t kMemoryProfiling[]; | 102 extern const char kMemoryProfiling[]; |
103 extern const wchar_t kPurgeMemoryButton[]; | 103 extern const char kPurgeMemoryButton[]; |
104 | 104 |
105 extern const wchar_t kEnableFileCookies[]; | 105 extern const char kEnableFileCookies[]; |
106 | 106 |
107 extern const wchar_t kStartMaximized[]; | 107 extern const char kStartMaximized[]; |
108 | 108 |
109 extern const wchar_t kEnableWatchdog[]; | 109 extern const char kEnableWatchdog[]; |
110 | 110 |
111 extern const wchar_t kFirstRun[]; | 111 extern const char kFirstRun[]; |
112 | 112 |
113 extern const wchar_t kNoFirstRun[]; | 113 extern const char kNoFirstRun[]; |
114 | 114 |
115 #if defined(OS_POSIX) | 115 #if defined(OS_POSIX) |
116 extern const wchar_t kNoProcessSingletonDialog[]; | 116 extern const char kNoProcessSingletonDialog[]; |
117 #endif | 117 #endif |
118 | 118 |
119 extern const wchar_t kMessageLoopHistogrammer[]; | 119 extern const char kMessageLoopHistogrammer[]; |
120 | 120 |
121 extern const wchar_t kImport[]; | 121 extern const char kImport[]; |
122 | 122 |
123 extern const wchar_t kSilentDumpOnDCHECK[]; | 123 extern const char kSilentDumpOnDCHECK[]; |
124 | 124 |
125 extern const wchar_t kDisablePromptOnRepost[]; | 125 extern const char kDisablePromptOnRepost[]; |
126 | 126 |
127 extern const wchar_t kDisablePopupBlocking[]; | 127 extern const char kDisablePopupBlocking[]; |
128 extern const wchar_t kDisableJavaScript[]; | 128 extern const char kDisableJavaScript[]; |
129 extern const wchar_t kDisableJava[]; | 129 extern const char kDisableJava[]; |
130 extern const wchar_t kDisablePlugins[]; | 130 extern const char kDisablePlugins[]; |
131 extern const wchar_t kDisableImages[]; | 131 extern const char kDisableImages[]; |
132 extern const wchar_t kDisableWebSecurity[]; | 132 extern const char kDisableWebSecurity[]; |
133 extern const wchar_t kEnableRemoteFonts[]; | 133 extern const char kEnableRemoteFonts[]; |
134 | 134 |
135 extern const wchar_t kUseLowFragHeapCrt[]; | 135 extern const char kUseLowFragHeapCrt[]; |
136 | 136 |
137 extern const wchar_t kInternalNaCl[]; | 137 extern const char kInternalNaCl[]; |
138 | 138 |
139 #ifndef NDEBUG | 139 #ifndef NDEBUG |
140 extern const wchar_t kGearsPluginPathOverride[]; | 140 extern const char kGearsPluginPathOverride[]; |
141 #endif | 141 #endif |
142 | 142 |
143 extern const wchar_t kEnableFastback[]; | 143 extern const char kEnableFastback[]; |
144 | 144 |
145 extern const wchar_t kDisableSync[]; | 145 extern const char kDisableSync[]; |
146 extern const wchar_t kSyncerThreadTimedStop[]; | 146 extern const char kSyncerThreadTimedStop[]; |
147 | 147 |
148 extern const wchar_t kSdchFilter[]; | 148 extern const char kSdchFilter[]; |
149 | 149 |
150 extern const wchar_t kEnableUserScripts[]; | 150 extern const char kEnableUserScripts[]; |
151 extern const wchar_t kDisableExtensions[]; | 151 extern const char kDisableExtensions[]; |
152 extern const wchar_t kExtensionsUpdateFrequency[]; | 152 extern const char kExtensionsUpdateFrequency[]; |
153 extern const wchar_t kLoadExtension[]; | 153 extern const char kLoadExtension[]; |
154 extern const wchar_t kPackExtension[]; | 154 extern const char kPackExtension[]; |
155 extern const wchar_t kPackExtensionKey[]; | 155 extern const char kPackExtensionKey[]; |
156 extern const wchar_t kShowExtensionsOnTop[]; | 156 extern const char kShowExtensionsOnTop[]; |
157 extern const wchar_t kLoadPlugin[]; | 157 extern const char kLoadPlugin[]; |
158 extern const wchar_t kUserScriptsDir[]; | 158 extern const char kUserScriptsDir[]; |
159 | 159 |
160 extern const wchar_t kIncognito[]; | 160 extern const char kIncognito[]; |
161 | 161 |
162 extern const wchar_t kEnableRendererAccessibility[]; | 162 extern const char kEnableRendererAccessibility[]; |
163 | 163 |
164 extern const wchar_t kTestName[]; | 164 extern const char kTestName[]; |
165 | 165 |
166 extern const wchar_t kRendererCmdPrefix[]; | 166 extern const char kRendererCmdPrefix[]; |
167 | 167 |
168 extern const wchar_t kUtilityCmdPrefix[]; | 168 extern const char kUtilityCmdPrefix[]; |
169 | 169 |
170 extern const wchar_t kWininetFtp[]; | 170 extern const char kWininetFtp[]; |
171 | 171 |
172 extern const wchar_t kEnableNativeWebWorkers[]; | 172 extern const char kEnableNativeWebWorkers[]; |
173 extern const wchar_t kWebWorkerProcessPerCore[]; | 173 extern const char kWebWorkerProcessPerCore[]; |
174 extern const wchar_t kWebWorkerShareProcesses[]; | 174 extern const char kWebWorkerShareProcesses[]; |
175 | 175 |
176 extern const wchar_t kBookmarkMenu[]; | 176 extern const char kBookmarkMenu[]; |
177 | 177 |
178 extern const wchar_t kEnableStatsTable[]; | 178 extern const char kEnableStatsTable[]; |
179 | 179 |
180 extern const wchar_t kExperimentalSpellcheckerFeatures[]; | 180 extern const char kExperimentalSpellcheckerFeatures[]; |
181 | 181 |
182 extern const wchar_t kDisableAudio[]; | 182 extern const char kDisableAudio[]; |
183 extern const wchar_t kSimpleDataSource[]; | 183 extern const char kSimpleDataSource[]; |
184 | 184 |
185 extern const wchar_t kForceFieldTestNameAndValue[]; | 185 extern const char kForceFieldTestNameAndValue[]; |
186 | 186 |
187 extern const wchar_t kNewTabPage[]; | 187 extern const char kNewTabPage[]; |
188 extern const wchar_t kOldNewTabPage[]; | 188 extern const char kOldNewTabPage[]; |
189 extern const wchar_t kDisableNewTabFirstRun[]; | 189 extern const char kDisableNewTabFirstRun[]; |
190 | 190 |
191 extern const wchar_t kDisableWebResources[]; | 191 extern const char kDisableWebResources[]; |
192 | 192 |
193 extern const wchar_t kEnableBenchmarking[]; | 193 extern const char kEnableBenchmarking[]; |
194 | 194 |
195 extern const wchar_t kNoDefaultBrowserCheck[]; | 195 extern const char kNoDefaultBrowserCheck[]; |
196 | 196 |
197 extern const wchar_t kPrivacyBlacklist[]; | 197 extern const char kPrivacyBlacklist[]; |
198 | 198 |
199 extern const wchar_t kZygoteCmdPrefix[]; | 199 extern const char kZygoteCmdPrefix[]; |
200 | 200 |
201 extern const wchar_t kThumbnailStore[]; | 201 extern const char kThumbnailStore[]; |
202 | 202 |
203 extern const wchar_t kTryChromeAgain[]; | 203 extern const char kTryChromeAgain[]; |
204 | 204 |
205 extern const wchar_t kFileDescriptorLimit[]; | 205 extern const char kFileDescriptorLimit[]; |
206 | 206 |
207 extern const wchar_t kEnableMonitorProfile[]; | 207 extern const char kEnableMonitorProfile[]; |
208 | 208 |
209 extern const wchar_t kDisableXSSAuditor[]; | 209 extern const char kDisableXSSAuditor[]; |
210 | 210 |
211 #if defined(OS_POSIX) | 211 #if defined(OS_POSIX) |
212 extern const wchar_t kEnableCrashReporter[]; | 212 extern const char kEnableCrashReporter[]; |
213 #endif | 213 #endif |
214 | 214 |
215 extern const wchar_t kEnableTabtastic2[]; | 215 extern const char kEnableTabtastic2[]; |
216 | 216 |
217 extern const wchar_t kPinnedTabCount[]; | 217 extern const char kPinnedTabCount[]; |
218 | 218 |
219 extern const wchar_t kSearchInOmniboxHint[]; | 219 extern const char kSearchInOmniboxHint[]; |
220 | 220 |
221 extern const wchar_t kEnableLocalStorage[]; | 221 extern const char kEnableLocalStorage[]; |
222 | 222 |
223 extern const wchar_t kEnableSessionStorage[]; | 223 extern const char kEnableSessionStorage[]; |
224 | 224 |
225 extern const wchar_t kAllowSandboxDebugging[]; | 225 extern const char kAllowSandboxDebugging[]; |
226 | 226 |
227 #if defined(OS_MACOSX) | 227 #if defined(OS_MACOSX) |
228 extern const wchar_t kEnableSandboxLogging[]; | 228 extern const char kEnableSandboxLogging[]; |
229 #endif | 229 #endif |
230 | 230 |
231 extern const wchar_t kEnableSeccompSandbox[]; | 231 extern const char kEnableSeccompSandbox[]; |
232 | 232 |
233 extern const wchar_t kDiagnostics[]; | 233 extern const char kDiagnostics[]; |
234 | 234 |
235 extern const wchar_t kDisableCustomJumpList[]; | 235 extern const char kDisableCustomJumpList[]; |
236 | 236 |
237 extern const wchar_t kEnableDatabases[]; | 237 extern const char kEnableDatabases[]; |
238 | 238 |
239 extern const wchar_t kEnableApplicationCache[]; | 239 extern const char kEnableApplicationCache[]; |
240 | 240 |
241 extern const wchar_t kSyncServiceURL[]; | 241 extern const char kSyncServiceURL[]; |
242 | 242 |
243 #if defined(OS_CHROMEOS) | 243 #if defined(OS_CHROMEOS) |
244 extern const wchar_t kCookiePipe[]; | 244 extern const char kCookiePipe[]; |
245 extern const wchar_t kEnableGView[]; | 245 extern const char kEnableGView[]; |
246 #endif | 246 #endif |
247 | 247 |
248 extern const wchar_t kEnableByteRangeSupport[]; | 248 extern const char kEnableByteRangeSupport[]; |
249 | 249 |
250 extern const wchar_t kExplicitlyAllowedPorts[]; | 250 extern const char kExplicitlyAllowedPorts[]; |
251 | 251 |
252 extern const wchar_t kActivateOnLaunch[]; | 252 extern const char kActivateOnLaunch[]; |
253 extern const wchar_t kEnableWebSockets[]; | 253 extern const char kEnableWebSockets[]; |
254 | 254 |
255 extern const wchar_t kEnableExperimentalWebGL[]; | 255 extern const char kEnableExperimentalWebGL[]; |
256 | 256 |
257 extern const wchar_t kEnableDesktopNotifications[]; | 257 extern const char kEnableDesktopNotifications[]; |
258 | 258 |
259 } // namespace switches | 259 } // namespace switches |
260 | 260 |
261 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ | 261 #endif // CHROME_COMMON_CHROME_SWITCHES_H_ |
OLD | NEW |