OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/common/content_switches.h" | 5 #include "content/common/content_switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // By default, file:// URIs cannot read other file:// URIs. This is an | 9 // By default, file:// URIs cannot read other file:// URIs. This is an |
10 // override for developers who need the old behavior for testing. | 10 // override for developers who need the old behavior for testing. |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 // - Gateway location for Linux and Windows | 175 // - Gateway location for Linux and Windows |
176 // - Location platform support for Windows 7 | 176 // - Location platform support for Windows 7 |
177 const char kExperimentalLocationFeatures[] = "experimental-location-features"; | 177 const char kExperimentalLocationFeatures[] = "experimental-location-features"; |
178 | 178 |
179 // Load NPAPI plugins from the specified directory. | 179 // Load NPAPI plugins from the specified directory. |
180 const char kExtraPluginDir[] = "extra-plugin-dir"; | 180 const char kExtraPluginDir[] = "extra-plugin-dir"; |
181 | 181 |
182 // Causes the process to run as an extension subprocess. | 182 // Causes the process to run as an extension subprocess. |
183 const char kExtensionProcess[] = "extension"; | 183 const char kExtensionProcess[] = "extension"; |
184 | 184 |
| 185 // Some field tests may rendomized in the browser, and the randomly selected |
| 186 // outcome needs to be propagated to the renderer. For instance, this is used |
| 187 // to modify histograms recorded in the renderer, or to get the renderer to |
| 188 // also set of its state (initialize, or not initialize components) to match the |
| 189 // experiment(s). |
| 190 // The argument is a string-ized list of experiment names, and the associated |
| 191 // value that was randomly selected. In the recent implementetaion, the |
| 192 // persistent representation generated by field_trial.cc and later decoded, is a |
| 193 // list of name and value pairs, separated by slashes. See field trial.cc for |
| 194 // current details. |
| 195 const char kForceFieldTestNameAndValue[] = "force-fieldtest"; |
| 196 |
185 // Extra command line options for launching the GPU process (normally used | 197 // Extra command line options for launching the GPU process (normally used |
186 // for debugging). Use like renderer-cmd-prefix. | 198 // for debugging). Use like renderer-cmd-prefix. |
187 const char kGpuLauncher[] = "gpu-launcher"; | 199 const char kGpuLauncher[] = "gpu-launcher"; |
188 | 200 |
189 // Makes this process a GPU sub-process. | 201 // Makes this process a GPU sub-process. |
190 const char kGpuProcess[] = "gpu-process"; | 202 const char kGpuProcess[] = "gpu-process"; |
191 | 203 |
192 // Causes the GPU process to display a dialog on launch. | 204 // Causes the GPU process to display a dialog on launch. |
193 const char kGpuStartupDialog[] = "gpu-startup-dialog"; | 205 const char kGpuStartupDialog[] = "gpu-startup-dialog"; |
194 | 206 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 // The value of this switch determines whether the process is started as a | 307 // The value of this switch determines whether the process is started as a |
296 // renderer or plugin host. If it's empty, it's the browser. | 308 // renderer or plugin host. If it's empty, it's the browser. |
297 const char kProcessType[] = "type"; | 309 const char kProcessType[] = "type"; |
298 | 310 |
299 // Causes the process to run as a profile import subprocess. | 311 // Causes the process to run as a profile import subprocess. |
300 const char kProfileImportProcess[] = "profile-import"; | 312 const char kProfileImportProcess[] = "profile-import"; |
301 | 313 |
302 // Register Pepper plugins (see pepper_plugin_registry.cc for its format). | 314 // Register Pepper plugins (see pepper_plugin_registry.cc for its format). |
303 const char kRegisterPepperPlugins[] = "register-pepper-plugins"; | 315 const char kRegisterPepperPlugins[] = "register-pepper-plugins"; |
304 | 316 |
| 317 // Causes the renderer process to throw an assertion on launch. |
| 318 const char kRendererAssertTest[] = "renderer-assert-test"; |
| 319 |
305 // On POSIX only: the contents of this flag are prepended to the renderer | 320 // On POSIX only: the contents of this flag are prepended to the renderer |
306 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". | 321 // command line. Useful values might be "valgrind" or "xterm -e gdb --args". |
307 const char kRendererCmdPrefix[] = "renderer-cmd-prefix"; | 322 const char kRendererCmdPrefix[] = "renderer-cmd-prefix"; |
308 | 323 |
309 // Causes the renderer process to crash on launch. | 324 // Causes the renderer process to crash on launch. |
310 const char kRendererCrashTest[] = "renderer-crash-test"; | 325 const char kRendererCrashTest[] = "renderer-crash-test"; |
311 | 326 |
312 // Causes the process to run as renderer instead of as browser. | 327 // Causes the process to run as renderer instead of as browser. |
313 const char kRendererProcess[] = "renderer"; | 328 const char kRendererProcess[] = "renderer"; |
314 | 329 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 const char kWebWorkerShareProcesses[] = "web-worker-share-processes"; | 388 const char kWebWorkerShareProcesses[] = "web-worker-share-processes"; |
374 | 389 |
375 // Causes the process to run as a worker subprocess. | 390 // Causes the process to run as a worker subprocess. |
376 const char kWorkerProcess[] = "worker"; | 391 const char kWorkerProcess[] = "worker"; |
377 | 392 |
378 // The prefix used when starting the zygote process. (i.e. 'gdb --args') | 393 // The prefix used when starting the zygote process. (i.e. 'gdb --args') |
379 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; | 394 const char kZygoteCmdPrefix[] = "zygote-cmd-prefix"; |
380 | 395 |
381 // Causes the process to run as a renderer zygote. | 396 // Causes the process to run as a renderer zygote. |
382 const char kZygoteProcess[] = "zygote"; | 397 const char kZygoteProcess[] = "zygote"; |
| 398 |
| 399 #if !defined(OFFICIAL_BUILD) |
| 400 // Causes the renderer process to throw an assertion on launch. |
| 401 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; |
| 402 #endif |
| 403 |
383 } // namespace switches | 404 } // namespace switches |
OLD | NEW |