| 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. |
| 11 const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files"; | 11 const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files"; |
| 12 | 12 |
| 13 // By default, an https page cannot run JavaScript, CSS or plug-ins from http | 13 // By default, an https page cannot run JavaScript, CSS or plug-ins from http |
| 14 // URLs. This provides an override to get the old insecure behavior. | 14 // URLs. This provides an override to get the old insecure behavior. |
| 15 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; | 15 const char kAllowRunningInsecureContent[] = "allow-running-insecure-content"; |
| 16 | 16 |
| 17 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). | 17 // Allows debugging of sandboxed processes (see zygote_main_linux.cc). |
| 18 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; | 18 const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; |
| 19 | 19 |
| 20 // Path to the exe to run for the renderer and plugin subprocesses. | 20 // Path to the exe to run for the renderer and plugin subprocesses. |
| 21 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; | 21 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; |
| 22 | 22 |
| 23 // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run |
| 24 // as a dependent process of the Chrome Frame plugin. |
| 25 const char kChromeFrame[] = "chrome-frame"; |
| 26 |
| 23 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. | 27 // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. |
| 24 // This is controlled by policy and is kept separate from the other | 28 // This is controlled by policy and is kept separate from the other |
| 25 // enable/disable switches to avoid accidentally regressing the policy | 29 // enable/disable switches to avoid accidentally regressing the policy |
| 26 // support for controlling access to these APIs. | 30 // support for controlling access to these APIs. |
| 27 const char kDisable3DAPIs[] = "disable-3d-apis"; | 31 const char kDisable3DAPIs[] = "disable-3d-apis"; |
| 28 | 32 |
| 29 // Disables accelerated compositing. | 33 // Disables accelerated compositing. |
| 30 const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing"; | 34 const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing"; |
| 31 | 35 |
| 36 // Disables the alternate window station for the renderer. |
| 37 const char kDisableAltWinstation[] = "disable-winsta"; |
| 38 |
| 32 // Disable the ApplicationCache. | 39 // Disable the ApplicationCache. |
| 33 const char kDisableApplicationCache[] = "disable-application-cache"; | 40 const char kDisableApplicationCache[] = "disable-application-cache"; |
| 34 // | 41 // |
| 35 // TODO(scherkus): remove --disable-audio when we have a proper fallback | 42 // TODO(scherkus): remove --disable-audio when we have a proper fallback |
| 36 // mechanism. | 43 // mechanism. |
| 37 const char kDisableAudio[] = "disable-audio"; | 44 const char kDisableAudio[] = "disable-audio"; |
| 38 | 45 |
| 39 // Disable limits on the number of backing stores. Can prevent blinking for | 46 // Disable limits on the number of backing stores. Can prevent blinking for |
| 40 // users with many windows/tabs and lots of memory. | 47 // users with many windows/tabs and lots of memory. |
| 41 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; | 48 const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 // Load an NPAPI plugin from the specified path. | 228 // Load an NPAPI plugin from the specified path. |
| 222 const char kLoadPlugin[] = "load-plugin"; | 229 const char kLoadPlugin[] = "load-plugin"; |
| 223 | 230 |
| 224 // Sets the minimum log level. Valid values are from 0 to 3: | 231 // Sets the minimum log level. Valid values are from 0 to 3: |
| 225 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. | 232 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. |
| 226 const char kLoggingLevel[] = "log-level"; | 233 const char kLoggingLevel[] = "log-level"; |
| 227 | 234 |
| 228 // Make plugin processes log their sent and received messages to VLOG(1). | 235 // Make plugin processes log their sent and received messages to VLOG(1). |
| 229 const char kLogPluginMessages[] = "log-plugin-messages"; | 236 const char kLogPluginMessages[] = "log-plugin-messages"; |
| 230 | 237 |
| 238 // Causes the process to run as a NativeClient broker |
| 239 // (used for launching NaCl loader processes on 64-bit Windows). |
| 240 const char kNaClBrokerProcess[] = "nacl-broker"; |
| 241 |
| 231 // Causes the process to run as a NativeClient loader. | 242 // Causes the process to run as a NativeClient loader. |
| 232 const char kNaClLoaderProcess[] = "nacl-loader"; | 243 const char kNaClLoaderProcess[] = "nacl-loader"; |
| 233 | 244 |
| 234 // By default, an https page can load images, fonts or frames from an http page. | 245 // By default, an https page can load images, fonts or frames from an http page. |
| 235 // This switch overrides this to block this lesser mixed-content problem. | 246 // This switch overrides this to block this lesser mixed-content problem. |
| 236 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content"; | 247 const char kNoDisplayingInsecureContent[] = "no-displaying-insecure-content"; |
| 237 | 248 |
| 238 // Support a separate switch that enables the v8 playback extension. | 249 // Support a separate switch that enables the v8 playback extension. |
| 239 // The extension causes javascript calls to Date.now() and Math.random() | 250 // The extension causes javascript calls to Date.now() and Math.random() |
| 240 // to return consistent values, such that subsequent loads of the same | 251 // to return consistent values, such that subsequent loads of the same |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 | 340 |
| 330 // Causes the renderer process to crash on launch. | 341 // Causes the renderer process to crash on launch. |
| 331 const char kRendererCrashTest[] = "renderer-crash-test"; | 342 const char kRendererCrashTest[] = "renderer-crash-test"; |
| 332 | 343 |
| 333 // Causes the process to run as renderer instead of as browser. | 344 // Causes the process to run as renderer instead of as browser. |
| 334 const char kRendererProcess[] = "renderer"; | 345 const char kRendererProcess[] = "renderer"; |
| 335 | 346 |
| 336 // Causes the renderer process to display a dialog on launch. | 347 // Causes the renderer process to display a dialog on launch. |
| 337 const char kRendererStartupDialog[] = "renderer-startup-dialog"; | 348 const char kRendererStartupDialog[] = "renderer-startup-dialog"; |
| 338 | 349 |
| 339 // Runs the plugin processes inside the sandbox. | |
| 340 const char kSafePlugins[] = "safe-plugins"; | |
| 341 | |
| 342 // Causes the process to run as a service process. | 350 // Causes the process to run as a service process. |
| 343 const char kServiceProcess[] = "service"; | 351 const char kServiceProcess[] = "service"; |
| 344 | 352 |
| 345 // Visibly render a border around paint rects in the web page to help debug | 353 // Visibly render a border around paint rects in the web page to help debug |
| 346 // and study painting behavior. | 354 // and study painting behavior. |
| 347 const char kShowPaintRects[] = "show-paint-rects"; | 355 const char kShowPaintRects[] = "show-paint-rects"; |
| 348 // | 356 // |
| 349 // TODO(scherkus): remove --simple-data-source when our media resource loading | 357 // TODO(scherkus): remove --simple-data-source when our media resource loading |
| 350 // is cleaned up and playback testing completed. | 358 // is cleaned up and playback testing completed. |
| 351 const char kSimpleDataSource[] = "simple-data-source"; | 359 const char kSimpleDataSource[] = "simple-data-source"; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 // Enable Pepper and JavaScript P2P API. | 414 // Enable Pepper and JavaScript P2P API. |
| 407 const char kEnableP2PApi[] = "enable-p2papi"; | 415 const char kEnableP2PApi[] = "enable-p2papi"; |
| 408 #endif | 416 #endif |
| 409 | 417 |
| 410 #if !defined(OFFICIAL_BUILD) | 418 #if !defined(OFFICIAL_BUILD) |
| 411 // Causes the renderer process to throw an assertion on launch. | 419 // Causes the renderer process to throw an assertion on launch. |
| 412 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; | 420 const char kRendererCheckFalseTest[] = "renderer-check-false-test"; |
| 413 #endif | 421 #endif |
| 414 | 422 |
| 415 } // namespace switches | 423 } // namespace switches |
| OLD | NEW |