// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/public/common/content_switches.h" namespace switches { // By default, file:// URIs cannot read other file:// URIs. This is an // override for developers who need the old behavior for testing. const char kAllowFileAccessFromFiles[] = "allow-file-access-from-files"; // Allows debugging of sandboxed processes (see zygote_main_linux.cc). const char kAllowSandboxDebugging[] = "allow-sandbox-debugging"; // Enumerates and prints a child process' most dangerous handles when it // is terminated. const char kAuditHandles[] = "enable-handle-auditing"; // The same as kAuditHandles except all handles are enumerated. const char kAuditAllHandles[] = "enable-handle-auditing-all"; // Causes the browser process to throw an assertion on startup. const char kBrowserAssertTest[] = "assert-test"; // Causes the browser process to crash on startup. const char kBrowserCrashTest[] = "crash-test"; // Path to the exe to run for the renderer and plugin subprocesses. const char kBrowserSubprocessPath[] = "browser-subprocess-path"; // Run Chrome in Chrome Frame mode. This means that Chrome expects to be run // as a dependent process of the Chrome Frame plugin. const char kChromeFrame[] = "chrome-frame"; // Disables client-visible 3D APIs, in particular WebGL and Pepper 3D. // This is controlled by policy and is kept separate from the other // enable/disable switches to avoid accidentally regressing the policy // support for controlling access to these APIs. const char kDisable3DAPIs[] = "disable-3d-apis"; // Disable gpu-accelerated 2d canvas. const char kDisableAccelerated2dCanvas[] = "disable-accelerated-2d-canvas"; // Disables accelerated compositing. const char kDisableAcceleratedCompositing[] = "disable-accelerated-compositing"; // Disables the hardware acceleration of 3D CSS and animation. const char kDisableAcceleratedLayers[] = "disable-accelerated-layers"; // Disables the hardware acceleration of plugins. const char kDisableAcceleratedPlugins[] = "disable-accelerated-plugins"; // Disables GPU accelerated video display. const char kDisableAcceleratedVideo[] = "disable-accelerated-video"; // Disables the alternate window station for the renderer. const char kDisableAltWinstation[] = "disable-winsta"; // Disable the ApplicationCache. const char kDisableApplicationCache[] = "disable-application-cache"; // // TODO(scherkus): remove --disable-audio when we have a proper fallback // mechanism. const char kDisableAudio[] = "disable-audio"; // Disable limits on the number of backing stores. Can prevent blinking for // users with many windows/tabs and lots of memory. const char kDisableBackingStoreLimit[] = "disable-backing-store-limit"; // Disables HTML5 DB support. const char kDisableDatabases[] = "disable-databases"; // Disables data transfer items. const char kDisableDataTransferItems[] = "disable-data-transfer-items"; // Disables desktop notifications (default enabled on windows). const char kDisableDesktopNotifications[] = "disable-desktop-notifications"; // Disables device orientation events. const char kDisableDeviceOrientation[] = "disable-device-orientation"; // Disable experimental WebGL support. const char kDisableExperimentalWebGL[] = "disable-webgl"; // Disable FileSystem API. const char kDisableFileSystem[] = "disable-file-system"; // Suppresses support for the Geolocation javascript API. const char kDisableGeolocation[] = "disable-geolocation"; // Disable GL multisampling. const char kDisableGLMultisampling[] = "disable-gl-multisampling"; // Disable the GLSL translator. const char kDisableGLSLTranslator[] = "disable-glsl-translator"; // Disable workarounds for various GPU driver bugs. const char kDisableGpuDriverBugWorkarounds[] = "disable-gpu-driver-bug-workarounds"; // Disable the GPU process sandbox. const char kDisableGpuSandbox[] = "disable-gpu-sandbox"; // Suppresses hang monitor dialogs in renderer processes. This may allow slow // unload handlers on a page to prevent the tab from closing, but the Task // Manager can be used to terminate the offending process in this case. const char kDisableHangMonitor[] = "disable-hang-monitor"; // Disable the thread that crashes the GPU process if it stops responding to // messages. const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; // Disable the Indexed Database API. const char kDisableIndexedDatabase[] = "disable-indexed-database"; // Prevent Java from running. const char kDisableJava[] = "disable-java"; // Don't execute JavaScript (browser JS like the new tab page still runs). const char kDisableJavaScript[] = "disable-javascript"; // Disable JavaScript I18N API. const char kDisableJavaScriptI18NAPI[] = "disable-javascript-i18n-api"; // Disable LocalStorage. const char kDisableLocalStorage[] = "disable-local-storage"; // Force logging to be disabled. Logging is enabled by default in debug // builds. const char kDisableLogging[] = "disable-logging"; // Prevent plugins from running. const char kDisablePlugins[] = "disable-plugins"; // Disable pop-up blocking. const char kDisablePopupBlocking[] = "disable-popup-blocking"; // Turns off the accessibility in the renderer. const char kDisableRendererAccessibility[] = "disable-renderer-accessibility"; // Disable False Start in SSL and TLS connections. const char kDisableSSLFalseStart[] = "disable-ssl-false-start"; // Disable smooth scrolling for testing. const char kDisableSmoothScrolling[] = "disable-smooth-scrolling"; // Disable the seccomp sandbox (Linux only) const char kDisableSeccompSandbox[] = "disable-seccomp-sandbox"; // Disable session storage. const char kDisableSessionStorage[] = "disable-session-storage"; // Enable shared workers. Functionality not yet complete. const char kDisableSharedWorkers[] = "disable-shared-workers"; // Disables speech input. const char kDisableSpeechInput[] = "disable-speech-input"; // Disable Spellcheck API. const char kDisableSpellcheckAPI[] = "disable-spellcheck-api"; // Disable web audio API. const char kDisableWebAudio[] = "disable-webaudio"; // Disable Web Sockets support. const char kDisableWebSockets[] = "disable-web-sockets"; // Enable gpu-accelerated 2d canvas. const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; // Enable hardware accelerated page drawing. // Please note that this flag is honored only if chromium is compiled with // SKIA_GPU flag, which can be enabled by setting use_skia_gpu variable to 1 // in build/features_override.gypi. const char kEnableAcceleratedDrawing[] = "enable-accelerated-drawing"; // Enables WebKit accessibility within the renderer process. const char kEnableAccessibility[] = "enable-accessibility"; // Turns on extremely verbose logging of accessibility events. const char kEnableAccessibilityLogging[] = "enable-accessibility-logging"; // Enables the creation of compositing layers for fixed position elements. const char kEnableCompositingForFixedPosition[] = "enable-fixed-position-compositing"; // Enable DNS side checking of certificates. Still experimental, should only // be used by developers at the current time. const char kEnableDNSCertProvenanceChecking[] = "enable-dns-cert-provenance-checking"; // Enables device motion events. const char kEnableDeviceMotion[] = "enable-device-motion"; // Enable the JavaScript Full Screen API. const char kDisableFullScreen[] = "disable-fullscreen"; // Enable the JavaScript Pointer Lock API. const char kEnablePointerLock[] = "enable-pointer-lock"; // Enable the Gamepad API const char kEnableGamepad[] = "enable-gamepad"; // Enable the GPU plugin and Pepper 3D rendering. const char kEnableGPUPlugin[] = "enable-gpu-plugin"; // Force logging to be enabled. Logging is disabled by default in release // builds. const char kEnableLogging[] = "enable-logging"; // Enables Media Source API on