// Copyright 2012 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" #include "build/build_config.h" #include "media/media_buildflags.h" namespace switches { // Allows processing of input before a frame has been committed. // TODO(schenney): crbug.com/987626. Used by headless. Look for a way not // involving a command line switch. const char kAllowPreCommitInput[] = "allow-pre-commit-input"; // 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"; // Enables TLS/SSL errors on localhost to be ignored (no interstitial, // no blocking of requests). const char kAllowInsecureLocalhost[] = "allow-insecure-localhost"; // Allows loopback interface to be added in network list for peer connection. const char kAllowLoopbackInPeerConnection[] = "allow-loopback-in-peer-connection"; // Allow a page to show popups during its unloading. // TODO(https://crbug.com/937569): Remove this in Chrome 88. const char kAllowPopupsDuringPageUnload[] = "allow-popups-during-page-unload"; // Allow a page to send synchronus XHR during its unloading. // TODO(https://crbug.com/1003101): Remove this in Chrome 88. const char kAllowSyncXHRInPageDismissal[] = "allow-sync-xhr-in-page-dimissal"; // Uses the android SkFontManager on linux. The specified directory should // include the configuration xml file with the name "fonts.xml". // This is used in blimp to emulate android fonts on linux. const char kAndroidFontsPath[] = "android-fonts-path"; // Allows app cache to be forced on, even when gated by an origin trial. // TODO(enne): remove this once app cache has been removed. const char kAppCacheForceEnabled[] = "app-cache-force-enabled"; // Set blink settings. Format is [=[=],... // The names are declared in Settings.json5. For boolean type, use "true", // "false", or omit '=' part to set to true. For enum type, use the int // value of the enum value. Applied after other command line flags and prefs. const char kBlinkSettings[] = "blink-settings"; // Causes the browser process to crash on startup. const char kBrowserCrashTest[] = "crash-test"; // Causes the browser process to display a dialog on launch. const char kBrowserStartupDialog[] = "browser-startup-dialog"; // Path to the exe to run for the renderer and plugin subprocesses. const char kBrowserSubprocessPath[] = "browser-subprocess-path"; // Tells whether the code is running browser tests (this changes the startup URL // used by the content shell and also disables features that can make tests // flaky [like monitoring of memory pressure]). const char kBrowserTest[] = "browser-test"; // Causes the Conversion Measurement API to run without delays or noise. const char kConversionsDebugMode[] = "conversions-debug-mode"; // Disable antialiasing on 2d canvas. const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa"; // Disables Canvas2D rendering into a scanout buffer for overlay support. const char kDisable2dCanvasImageChromium[] = "disable-2d-canvas-image-chromium"; // 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"; // Enable in-progress canvas 2d API features. const char kEnableNewCanvas2DAPI[] = "new-canvas-2d-api"; // Disables hardware acceleration of video decode, where available. const char kDisableAcceleratedVideoDecode[] = "disable-accelerated-video-decode"; // Disables hardware acceleration of video encode, where available. const char kDisableAcceleratedVideoEncode[] = "disable-accelerated-video-encode"; // 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"; // Disable backgrounding renders for occluded windows. Done for tests to avoid // nondeterministic behavior. const char kDisableBackgroundingOccludedWindowsForTesting[] = "disable-backgrounding-occluded-windows"; // Disable task throttling of timer tasks from background pages. const char kDisableBackgroundTimerThrottling[] = "disable-background-timer-throttling"; // Disable one or more Blink runtime-enabled features. // Use names from runtime_enabled_features.json5, separated by commas. // Applied after kEnableBlinkFeatures, and after other flags that change these // features. const char kDisableBlinkFeatures[] = "disable-blink-features"; // Disables HTML5 DB support. const char kDisableDatabases[] = "disable-databases"; // Disable the per-domain blocking for 3D APIs after GPU reset. // This switch is intended only for tests. const char kDisableDomainBlockingFor3DAPIs[] = "disable-domain-blocking-for-3d-apis"; // Disable all versions of WebGL. const char kDisableWebGL[] = "disable-webgl"; // Disable WebGL2. const char kDisableWebGL2[] = "disable-webgl2"; // Disable FileSystem API. const char kDisableFileSystem[] = "disable-file-system"; // Disable 3D inside of flapper. const char kDisableFlash3d[] = "disable-flash-3d"; // Disable Stage3D inside of flapper. const char kDisableFlashStage3d[] = "disable-flash-stage3d"; // Disable user gesture requirement for presentation. const char kDisableGestureRequirementForPresentation[] = "disable-gesture-requirement-for-presentation"; // Disables GPU hardware acceleration. If software renderer is not in place, // then the GPU process won't launch. const char kDisableGpu[] = "disable-gpu"; // Prevent the compositor from using its GPU implementation. const char kDisableGpuCompositing[] = "disable-gpu-compositing"; // Disable proactive early init of GPU process. const char kDisableGpuEarlyInit[] = "disable-gpu-early-init"; // Do not force that all compositor resources be backed by GPU memory buffers. const char kDisableGpuMemoryBufferCompositorResources[] = "disable-gpu-memory-buffer-compositor-resources"; // Disable GpuMemoryBuffer backed VideoFrames. const char kDisableGpuMemoryBufferVideoFrames[] = "disable-gpu-memory-buffer-video-frames"; // For tests, to disable the limit on the number of times the GPU process may be // restarted. const char kDisableGpuProcessCrashLimit[] = "disable-gpu-process-crash-limit"; // For tests, to disable falling back to software compositing if the GPU Process // has crashed, and reached the GPU Process crash limit. const char kDisableSoftwareCompositingFallback[] = "disable-software-compositing-fallback"; // Disable the thread that crashes the GPU process if it stops responding to // messages. const char kDisableGpuWatchdog[] = "disable-gpu-watchdog"; // Disables the IPC flooding protection. // It is activated by default. Some javascript functions can be used to flood // the browser process with IPC. This protection limits the rate at which they // can be used. const char kDisableIpcFloodingProtection[] = "disable-ipc-flooding-protection"; // 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 RenderThread's HistogramCustomizer. const char kDisableHistogramCustomizer[] = "disable-histogram-customizer"; // Don't kill a child process when it sends a bad IPC message. Apart // from testing, it is a bad idea from a security perspective to enable // this switch. const char kDisableKillAfterBadIPC[] = "disable-kill-after-bad-ipc"; // Disables LCD text. const char kDisableLCDText[] = "disable-lcd-text"; // 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"; // Disables using CODECAPI_AVLowLatencyMode when creating DXVA decoders. const char kDisableLowLatencyDxva[] = "disable-low-latency-dxva"; // Disables clearing the rendering output of a renderer when it didn't commit // new output for a while after a top-frame navigation. const char kDisableNewContentRenderingTimeout[] = "disable-new-content-rendering-timeout"; // Disables the Web Notification and the Push APIs. const char kDisableNotifications[] = "disable-notifications"; // Disable Pepper3D. const char kDisablePepper3d[] = "disable-pepper-3d"; // Disables the Permissions API. const char kDisablePermissionsAPI[] = "disable-permissions-api"; // Disable Image Chromium for Pepper 3d. const char kDisablePepper3DImageChromium[] = "disable-pepper-3d-image-chromium"; // Disables compositor-accelerated touch-screen pinch gestures. const char kDisablePinch[] = "disable-pinch"; // Disable the creation of compositing layers when it would prevent LCD text. const char kDisablePreferCompositingToLCDText[] = "disable-prefer-compositing-to-lcd-text"; // Disables the Presentation API. const char kDisablePresentationAPI[] = "disable-presentation-api"; // Disables throttling of history.pushState/replaceState calls. const char kDisablePushStateThrottle[] = "disable-pushstate-throttle"; // Taints all elements, regardless of origin. const char kDisableReadingFromCanvas[] = "disable-reading-from-canvas"; // Disables remote web font support. SVG font should always work whether this // option is specified or not. const char kDisableRemoteFonts[] = "disable-remote-fonts"; // Disables the RemotePlayback API. const char kDisableRemotePlaybackAPI[] = "disable-remote-playback-api"; // Turns off the accessibility in the renderer. const char kDisableRendererAccessibility[] = "disable-renderer-accessibility"; // Prevent renderer process backgrounding when set. const char kDisableRendererBackgrounding[] = "disable-renderer-backgrounding"; // Whether the ResourceScheduler is disabled. Note this is only useful for C++ // Headless embedders who need to implement their own resource scheduling. const char kDisableResourceScheduler[] = "disable-resource-scheduler"; // Disable shared workers. const char kDisableSharedWorkers[] = "disable-shared-workers"; // Do not use runtime-detected high-end CPU optimizations in Skia. This is // useful for forcing a baseline code path for e.g. web tests. const char kDisableSkiaRuntimeOpts[] = "disable-skia-runtime-opts"; // Disable smooth scrolling for testing. const char kDisableSmoothScrolling[] = "disable-smooth-scrolling"; // Disables the use of a 3D software rasterizer. const char kDisableSoftwareRasterizer[] = "disable-software-rasterizer"; // Disables the Web Speech API (both speech recognition and synthesis). const char kDisableSpeechAPI[] = "disable-speech-api"; // Disables the speech synthesis part of Web Speech API. const char kDisableSpeechSynthesisAPI[] = "disable-speech-synthesis-api"; // Disables adding the test certs in the network process. const char kDisableTestCerts[] = "disable-test-root-certs"; // Disable multithreaded GPU compositing of web content. const char kDisableThreadedCompositing[] = "disable-threaded-compositing"; // Disable multithreaded, compositor scrolling of web content. const char kDisableThreadedScrolling[] = "disable-threaded-scrolling"; // Disable V8 idle tasks. const char kDisableV8IdleTasks[] = "disable-v8-idle-tasks"; // Disables WebGL rendering into a scanout buffer for overlay support. const char kDisableWebGLImageChromium[] = "disable-webgl-image-chromium"; // Don't enforce the same-origin policy. (Used by people testing their sites.) const char kDisableWebSecurity[] = "disable-web-security"; // Disable the video decoder from drawing directly to a texture. const char kDisableZeroCopyDxgiVideo[] = "disable-zero-copy-dxgi-video"; // Specifies if the |DOMAutomationController| needs to be bound in the // renderer. This binding happens on per-frame basis and hence can potentially // be a performance bottleneck. One should only enable it when automating dom // based tests. const char kDomAutomationController[] = "dom-automation"; // Disable antialiasing on 2d canvas clips const char kDisable2dCanvasClipAntialiasing[] = "disable-2d-canvas-clip-aa"; // Disable YUV image decoding for those formats and cases where it's supported. // Has no effect unless GPU rasterization is enabled. const char kDisableYUVImageDecoding[] = "disable-yuv-image-decoding"; // Logs Runtime Call Stats for Blink. --single-process also needs to be // used along with this for the stats to be logged. const char kDumpBlinkRuntimeCallStats[] = "dump-blink-runtime-call-stats"; // Enables LCD text. const char kEnableLCDText[] = "enable-lcd-text"; // Enable the creation of compositing layers when it would prevent LCD text. const char kEnablePreferCompositingToLCDText[] = "enable-prefer-compositing-to-lcd-text"; // Enable one or more Blink runtime-enabled features. // Use names from runtime_enabled_features.json5, separated by commas. // Applied before kDisableBlinkFeatures, and after other flags that change these // features. const char kEnableBlinkFeatures[] = "enable-blink-features"; // Enable native caret browsing, in which a moveable cursor is placed on a web // page, allowing a user to select and navigate through non-editable text using // just a keyboard. See https://crbug.com/977390 for links to i2i. const char kEnableCaretBrowsing[] = "enable-caret-browsing"; // Flag that turns on a group of experimental/newly added cookie-related // features together, as a convenience for e.g. testing, to avoid having to set // multiple switches individually which may be error-prone (not to mention // tedious). There is not a corresponding switch to disable all these features, // because that is discouraged, and for testing purposes you'd need to switch // them off individually to identify the problematic feature anyway. // // At present this turns on: // net::features::kCookiesWithoutSameSiteMustBeSecure // net::features::kSameSiteByDefaultCookies // net::features::kSameSiteDefaultChecksMethodRigorously // It will soon also turn on: // content_settings::kImprovedCookieControls // content_settings::kImprovedCookieControlsForThirdPartyCookieBlocking // net::features::kSchemefulSameSite const char kEnableExperimentalCookieFeatures[] = "enable-experimental-cookie-features"; // Enables experimental WebAssembly features. const char kEnableExperimentalWebAssemblyFeatures[] = "enable-experimental-webassembly-features"; // Enables Web Platform features that are in development. const char kEnableExperimentalWebPlatformFeatures[] = "enable-experimental-web-platform-features"; // Enables support for FTP URLs. See https://crbug.com/333943. const char kEnableFtp[] = "enable-ftp"; // Disables all RuntimeEnabledFeatures that can be enabled via OriginTrials. const char kDisableOriginTrialControlledBlinkFeatures[] = "disable-origin-trial-controlled-blink-features"; // Enable GpuMemoryBuffer backed VideoFrames. const char kEnableGpuMemoryBufferVideoFrames[] = "enable-gpu-memory-buffer-video-frames"; // Force logging to be enabled. Logging is disabled by default in release // builds. const char kEnableLogging[] = "enable-logging"; // Enables the type, downlinkMax attributes of the NetInfo API. Also, enables // triggering of change attribute of the NetInfo API when there is a change in // the connection type. const char kEnableNetworkInformationDownlinkMax[] = "enable-network-information-downlink-max"; // Disables the video decoder from drawing to an NV12 textures instead of ARGB. const char kDisableNv12DxgiVideo[] = "disable-nv12-dxgi-video"; // Enables testing features of the Plugin Placeholder. For internal use only. const char kEnablePluginPlaceholderTesting[] = "enable-plugin-placeholder-testing"; // Make the values returned to window.performance.memory more granular and more // up to date in shared worker. Without this flag, the memory information is // still available, but it is bucketized and updated less frequently. This flag // also applys to workers. const char kEnablePreciseMemoryInfo[] = "enable-precise-memory-info"; // Set options to cache V8 data. (off, preparse data, or code) const char kV8CacheOptions[] = "v8-cache-options"; // If true the ServiceProcessLauncher is used to launch services. This allows // for service binaries to be loaded rather than using the utility process. This // is only useful for tests. const char kEnableServiceBinaryLauncher[] = "enable-service-binary-launcher"; // Enables the Skia benchmarking extension. const char kEnableSkiaBenchmarking[] = "enable-skia-benchmarking"; // On platforms that support it, enables smooth scroll animation. const char kEnableSmoothScrolling[] = "enable-smooth-scrolling"; // Enable spatial navigation const char kEnableSpatialNavigation[] = "enable-spatial-navigation"; // Blocks all insecure requests from secure contexts, and prevents the user // from overriding that decision. const char kEnableStrictMixedContentChecking[] = "enable-strict-mixed-content-checking"; // Blocks insecure usage of a number of powerful features (device orientation, // for example) that we haven't yet deprecated for the web at large. const char kEnableStrictPowerfulFeatureRestrictions[] = "enable-strict-powerful-feature-restrictions"; // Enabled threaded compositing for web tests. const char kEnableThreadedCompositing[] = "enable-threaded-compositing"; // Enable tracing during the execution of browser tests. const char kEnableTracing[] = "enable-tracing"; // The filename to write the output of the test tracing to. const char kEnableTracingOutput[] = "enable-tracing-output"; // Enable screen capturing support for MediaStream API. const char kEnableUserMediaScreenCapturing[] = "enable-usermedia-screen-capturing"; // Enable the mode that uses zooming to implment device scale factor behavior. const char kEnableUseZoomForDSF[] = "enable-use-zoom-for-dsf"; // Enables the use of the @viewport CSS rule, which allows // pages to control aspects of their own layout. This also turns on touch-screen // pinch gestures. const char kEnableViewport[] = "enable-viewport"; // Enable the Vtune profiler support. const char kEnableVtune[] = "enable-vtune-support"; // Enable the WebAuthn Mojo Testing API. This is a way to interact with the // virtual authenticator environment through a mojo interface and is supported // only to run web-platform-tests on content shell. // Removal of this deprecated API is blocked on crbug.com/937369. const char kEnableWebAuthDeprecatedMojoTestingApi[] = "enable-web-auth-deprecated-mojo-testing-api"; // Enable WebGL2 Compute context. const char kEnableWebGL2ComputeContext[] = "enable-webgl2-compute-context"; // Enables WebGL extensions not yet approved by the community. const char kEnableWebGLDraftExtensions[] = "enable-webgl-draft-extensions"; // Enables WebGL rendering into a scanout buffer for overlay support. const char kEnableWebGLImageChromium[] = "enable-webgl-image-chromium"; // Handle to the shared memory segment containing field trial state that is to // be shared between processes. The argument to this switch is the handle id // (pointer on Windows) as a string, followed by a comma, then the size of the // shared memory segment as a string. const char kFieldTrialHandle[] = "field-trial-handle"; // Define an alias root directory which is replaced with the replacement string // in file URLs. The format is "/alias=/replacement", which would turn // file:///alias/some/path.html into file:///replacement/some/path.html. const char kFileUrlPathAlias[] = "file-url-path-alias"; // Disables OOP rasterization. Takes precedence over the enable flag. const char kDisableOopRasterization[] = "disable-oop-rasterization"; // Turns on out of process raster for the renderer whenever gpu raster // would have been used. Enables the chromium_raster_transport extension. const char kEnableOopRasterization[] = "enable-oop-rasterization"; // Pins the default referrer policy to the pre-M80 value of // no-referrer-when-downgrade. // TODO(crbug.com/1016541): After M82, remove when the corresponding // enterprise policy has been deleted. const char kForceLegacyDefaultReferrerPolicy[] = "force-legacy-default-referrer-policy"; // Forces use of hardware overlay for fullscreen video playback. Useful for // testing the Android overlay fullscreen functionality on other platforms. const char kForceOverlayFullscreenVideo[] = "force-overlay-fullscreen-video"; // This forces pages to be loaded as presentation receivers. Useful for testing // behavior specific to presentation receivers. // Spec: https://www.w3.org/TR/presentation-api/#interface-presentationreceiver const char kForcePresentationReceiverForTesting[] = "force-presentation-receiver-for-testing"; // Force renderer accessibility to be on instead of enabling it on demand when // a screen reader is detected. The disable-renderer-accessibility switch // overrides this if present. const char kForceRendererAccessibility[] = "force-renderer-accessibility"; // For development / testing only. When running content_browsertests, // saves output of failing accessibility tests to their expectations files in // content/test/data/accessibility/, overwriting existing file content. const char kGenerateAccessibilityTestExpectations[] = "generate-accessibility-test-expectations"; // Extra command line options for launching the GPU process (normally used // for debugging). Use like renderer-cmd-prefix. const char kGpuLauncher[] = "gpu-launcher"; // Makes this process a GPU sub-process. const char kGpuProcess[] = "gpu-process"; // Starts the GPU sandbox before creating a GL context. const char kGpuSandboxStartEarly[] = "gpu-sandbox-start-early"; // Causes the GPU process to display a dialog on launch. const char kGpuStartupDialog[] = "gpu-startup-dialog"; // Start the renderer with an initial virtual time override specified in // seconds since the epoch. const char kInitialVirtualTime[] = "initial-virtual-time"; // Run the GPU process as a thread in the browser process. const char kInProcessGPU[] = "in-process-gpu"; // Overrides the timeout, in seconds, that a child process waits for a // connection from the browser before killing itself. const char kIPCConnectionTimeout[] = "ipc-connection-timeout"; // Require dedicated processes for a set of origins, specified as a // comma-separated list. For example: // --isolate-origins=https://www.foo.com,https://www.bar.com const char kIsolateOrigins[] = "isolate-origins"; // Disable latest shipping ECMAScript 6 features. const char kDisableJavaScriptHarmonyShipping[] = "disable-javascript-harmony-shipping"; // Enables experimental Harmony (ECMAScript 6) features. const char kJavaScriptHarmony[] = "javascript-harmony"; // Specifies the flags passed to JS engine. const char kJavaScriptFlags[] = "js-flags"; // Flag to launch tests in the browser process. const char kLaunchAsBrowser[] = "as-browser"; // Logs GPU control list decisions when enforcing blacklist rules. const char kLogGpuControlListDecisions[] = "log-gpu-control-list-decisions"; // Sets the minimum log level. Valid values are from 0 to 3: // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. const char kLoggingLevel[] = "log-level"; // Overrides the default file name to use for general-purpose logging (does not // affect which events are logged). const char kLogFile[] = "log-file"; // Resizes of the main frame are caused by changing between landscape and // portrait mode (i.e. Android) so the page should be rescaled to fit. const char kMainFrameResizesAreOrientationChanges[] = "main-frame-resizes-are-orientation-changes"; // Allows user to override maximum number of active WebGL contexts per // renderer process. const char kMaxActiveWebGLContexts[] = "max-active-webgl-contexts"; // Sets the maximium decoded image size limitation. const char kMaxDecodedImageSizeMb[] = "max-decoded-image-size-mb"; // Indicates the utility process should run with a message loop type of UI. const char kMessageLoopTypeUi[] = "message-loop-type-ui"; // Set the default result for MockCertVerifier. This only works in test code. const char kMockCertVerifierDefaultResultForTesting[] = "mock-cert-verifier-default-result-for-testing"; // Initializes Mojo Core from a shared library at the specified path, rather // than using the version of Mojo Core embedded within the Content executable. const char kMojoCoreLibraryPath[] = "mojo-core-library-path"; // Use a Mojo-based LocalStorage implementation. const char kMojoLocalStorage[] = "mojo-local-storage"; // Sets the timeout seconds of the network-quiet timers in IdlenessDetector. // Used by embedders who want to change the timeout time in order to run web // contents on various embedded devices and changeable network bandwidths in // different regions. For example, it's useful when using FirstMeaningfulPaint // signal to dismiss a splash screen. const char kNetworkQuietTimeout[] = "network-quiet-timeout"; // Disables the use of a zygote process for forking child processes. Instead, // child processes will be forked and exec'd directly. Note that --no-sandbox // should also be used together with this flag because the sandbox needs the // zygote to work. const char kNoZygote[] = "no-zygote"; // Disables V8 mitigations for executing untrusted code. const char kNoV8UntrustedCodeMitigations[] = "no-v8-untrusted-code-mitigations"; // Number of worker threads used to rasterize content. const char kNumRasterThreads[] = "num-raster-threads"; // Override the behavior of plugin throttling for testing. // By default the throttler is only enabled for a hard-coded list of plugins. // Set the value to 'always' to always throttle every plugin instance. Set the // value to 'never' to disable throttling. const char kOverridePluginPowerSaverForTesting[] = "override-plugin-power-saver-for-testing"; // Override the default value for the 'passive' field in javascript // addEventListener calls. Values are defined as: // 'documentonlytrue' to set the default be true only for document level nodes. // 'true' to set the default to be true on all nodes (when not specified). // 'forcealltrue' to force the value on all nodes. const char kPassiveListenersDefault[] = "passive-listeners-default"; // Argument to the process type that indicates a PPAPI broker process type. const char kPpapiBrokerProcess[] = "ppapi-broker"; // "Command-line" arguments for the PPAPI Flash; used for debugging options. const char kPpapiFlashArgs[] = "ppapi-flash-args"; // Runs PPAPI (Pepper) plugins in-process. const char kPpapiInProcess[] = "ppapi-in-process"; // Specifies a command that should be used to launch the ppapi plugin process. // Useful for running the plugin process through purify or quantify. Ex: // --ppapi-plugin-launcher="path\to\purify /Run=yes" const char kPpapiPluginLauncher[] = "ppapi-plugin-launcher"; // Argument to the process type that indicates a PPAPI plugin process type. const char kPpapiPluginProcess[] = "ppapi"; // Causes the PPAPI sub process to display a dialog on launch. Be sure to use // --no-sandbox as well or the sandbox won't allow the dialog to display. const char kPpapiStartupDialog[] = "ppapi-startup-dialog"; // Enable the "Process Per Site" process model for all domains. This mode // consolidates same-site pages so that they share a single process. // // More details here: // - https://www.chromium.org/developers/design-documents/process-models // - The class comment in site_instance.h, listing the supported process models. // // IMPORTANT: This isn't to be confused with --site-per-process (which is about // isolation, not consolidation). You probably want the other one. const char kProcessPerSite[] = "process-per-site"; // Runs each set of script-connected tabs (i.e., a BrowsingInstance) in its own // renderer process. We default to using a renderer process for each // site instance (i.e., group of pages from the same registered domain with // script connections to each other). // TODO(creis): This flag is currently a no-op. We should refactor it to avoid // "unnecessary" process swaps for cross-site navigations but still swap when // needed for security (e.g., isolated origins). const char kProcessPerTab[] = "process-per-tab"; // The value of this switch determines whether the process is started as a // renderer or plugin host. If it's empty, it's the browser. const char kProcessType[] = "type"; // Uses a specified proxy server, overrides system settings. This switch only // affects HTTP and HTTPS requests. ARC-apps use only HTTP proxy server with the // highest priority. // TODO(yzshen): Move this switch back to chrome/common/chrome_switches.{h,cc}, // once the network service is able to access the corresponding setting via the // pref service. const char kProxyServer[] = "proxy-server"; // Enables or disables pull-to-refresh gesture in response to vertical // overscroll. // Set the value to '0' to disable the feature, set to '1' to enable it for both // touchpad and touchscreen, and set to '2' to enable it only for touchscreen. // Defaults to disabled. const char kPullToRefresh[] = "pull-to-refresh"; // Register Pepper plugins (see pepper_plugin_list.cc for its format). const char kRegisterPepperPlugins[] = "register-pepper-plugins"; // Enables remote debug over stdio pipes [in=3, out=4]. // Optionally, specifies the format for the protocol messages, can be either // "JSON" (the default) or "CBOR". const char kRemoteDebuggingPipe[] = "remote-debugging-pipe"; // Enables remote debug over HTTP on the specified port. const char kRemoteDebuggingPort[] = "remote-debugging-port"; const char kRendererClientId[] = "renderer-client-id"; // The contents of this flag are prepended to the renderer command line. // Useful values might be "valgrind" or "xterm -e gdb --args". const char kRendererCmdPrefix[] = "renderer-cmd-prefix"; // Causes the process to run as renderer instead of as browser. const char kRendererProcess[] = "renderer"; // Overrides the default/calculated limit to the number of renderer processes. // Very high values for this setting can lead to high memory/resource usage // or instability. const char kRendererProcessLimit[] = "renderer-process-limit"; // Causes the renderer process to display a dialog on launch. Passing this flag // also adds service_manager::kNoSandbox on Windows non-official builds, since // that's needed to show a dialog. const char kRendererStartupDialog[] = "renderer-startup-dialog"; // Manual tests only run when --run-manual is specified. This allows writing // tests that don't run automatically but are still in the same test binary. // This is useful so that a team that wants to run a few tests doesn't have to // add a new binary that must be compiled on all builds. const char kRunManualTestsFlag[] = "run-manual"; // Causes the process to run as a sandbox IPC subprocess. const char kSandboxIPCProcess[] = "sandbox-ipc"; // Runs the renderer and plugins in the same process as the browser const char kSingleProcess[] = "single-process"; // Enforces a one-site-per-process security policy: // * Each renderer process, for its whole lifetime, is dedicated to rendering // pages for just one site. // * Thus, pages from different sites are never in the same process. // * A renderer process's access rights are restricted based on its site. // * All cross-site navigations force process swaps. // *