OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "build/build_config.h" | 5 #include "build/build_config.h" |
6 #include "content/public/common/content_switches.h" | 6 #include "content/public/common/content_switches.h" |
7 | 7 |
8 namespace switches { | 8 namespace switches { |
9 | 9 |
10 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to | 10 // The number of MSAA samples for canvas2D. Requires MSAA support by GPU to |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const char kBrowserCrashTest[] = "crash-test"; | 56 const char kBrowserCrashTest[] = "crash-test"; |
57 | 57 |
58 // Path to the exe to run for the renderer and plugin subprocesses. | 58 // Path to the exe to run for the renderer and plugin subprocesses. |
59 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; | 59 const char kBrowserSubprocessPath[] = "browser-subprocess-path"; |
60 | 60 |
61 // Causes the implementations of guests (inner WebContents) to use | 61 // Causes the implementations of guests (inner WebContents) to use |
62 // out-of-process iframes. | 62 // out-of-process iframes. |
63 const char kUseCrossProcessFramesForGuests[] = | 63 const char kUseCrossProcessFramesForGuests[] = |
64 "use-cross-process-frames-for-guests"; | 64 "use-cross-process-frames-for-guests"; |
65 | 65 |
66 // Dumps extra logging about plugin loading to the log file. | |
67 const char kDebugPluginLoading[] = "debug-plugin-loading"; | |
68 | |
69 // Sets the tile size used by composited layers. | 66 // Sets the tile size used by composited layers. |
70 const char kDefaultTileWidth[] = "default-tile-width"; | 67 const char kDefaultTileWidth[] = "default-tile-width"; |
71 const char kDefaultTileHeight[] = "default-tile-height"; | 68 const char kDefaultTileHeight[] = "default-tile-height"; |
72 | 69 |
73 // Disable antialiasing on 2d canvas. | 70 // Disable antialiasing on 2d canvas. |
74 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa"; | 71 const char kDisable2dCanvasAntialiasing[] = "disable-canvas-aa"; |
75 | 72 |
76 // Disables Canvas2D rendering into a scanout buffer for overlay support. | 73 // Disables Canvas2D rendering into a scanout buffer for overlay support. |
77 const char kDisable2dCanvasImageChromium[] = "disable-2d-canvas-image-chromium"; | 74 const char kDisable2dCanvasImageChromium[] = "disable-2d-canvas-image-chromium"; |
78 | 75 |
(...skipping 26 matching lines...) Expand all Loading... |
105 | 102 |
106 // Disable one or more Blink runtime-enabled features. | 103 // Disable one or more Blink runtime-enabled features. |
107 // Use names from RuntimeEnabledFeatures.in, separated by commas. | 104 // Use names from RuntimeEnabledFeatures.in, separated by commas. |
108 // Applied after kEnableBlinkFeatures, and after other flags that change these | 105 // Applied after kEnableBlinkFeatures, and after other flags that change these |
109 // features. | 106 // features. |
110 const char kDisableBlinkFeatures[] = "disable-blink-features"; | 107 const char kDisableBlinkFeatures[] = "disable-blink-features"; |
111 | 108 |
112 // Disables HTML5 DB support. | 109 // Disables HTML5 DB support. |
113 const char kDisableDatabases[] = "disable-databases"; | 110 const char kDisableDatabases[] = "disable-databases"; |
114 | 111 |
115 // Handles URL requests by NPAPI plugins through the renderer. | |
116 const char kDisableDirectNPAPIRequests[] = "disable-direct-npapi-requests"; | |
117 | |
118 // Disable the per-domain blocking for 3D APIs after GPU reset. | 112 // Disable the per-domain blocking for 3D APIs after GPU reset. |
119 // This switch is intended only for tests. | 113 // This switch is intended only for tests. |
120 const char kDisableDomainBlockingFor3DAPIs[] = | 114 const char kDisableDomainBlockingFor3DAPIs[] = |
121 "disable-domain-blocking-for-3d-apis"; | 115 "disable-domain-blocking-for-3d-apis"; |
122 | 116 |
123 // Disable experimental WebGL support. | 117 // Disable experimental WebGL support. |
124 const char kDisableExperimentalWebGL[] = "disable-webgl"; | 118 const char kDisableExperimentalWebGL[] = "disable-webgl"; |
125 | 119 |
126 // Comma-separated list of feature names to disable. See also kEnableFeatures. | 120 // Comma-separated list of feature names to disable. See also kEnableFeatures. |
127 const char kDisableFeatures[] = "disable-features"; | 121 const char kDisableFeatures[] = "disable-features"; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 | 228 |
235 // Disable Pepper3D. | 229 // Disable Pepper3D. |
236 const char kDisablePepper3d[] = "disable-pepper-3d"; | 230 const char kDisablePepper3d[] = "disable-pepper-3d"; |
237 | 231 |
238 // Disables the Permissions API. | 232 // Disables the Permissions API. |
239 const char kDisablePermissionsAPI[] = "disable-permissions-api"; | 233 const char kDisablePermissionsAPI[] = "disable-permissions-api"; |
240 | 234 |
241 // Disables compositor-accelerated touch-screen pinch gestures. | 235 // Disables compositor-accelerated touch-screen pinch gestures. |
242 const char kDisablePinch[] = "disable-pinch"; | 236 const char kDisablePinch[] = "disable-pinch"; |
243 | 237 |
244 // Disable discovering third-party plugins. Effectively loading only | |
245 // ones shipped with the browser plus third-party ones as specified by | |
246 // --extra-plugin-dir and --load-plugin switches. | |
247 const char kDisablePluginsDiscovery[] = "disable-plugins-discovery"; | |
248 | |
249 // Disable the creation of compositing layers when it would prevent LCD text. | 238 // Disable the creation of compositing layers when it would prevent LCD text. |
250 const char kDisablePreferCompositingToLCDText[] = | 239 const char kDisablePreferCompositingToLCDText[] = |
251 "disable-prefer-compositing-to-lcd-text"; | 240 "disable-prefer-compositing-to-lcd-text"; |
252 | 241 |
253 // Disables the Presentation API. | 242 // Disables the Presentation API. |
254 const char kDisablePresentationAPI[] = "disable-presentation-api"; | 243 const char kDisablePresentationAPI[] = "disable-presentation-api"; |
255 | 244 |
256 // Disables RGBA_4444 textures. | 245 // Disables RGBA_4444 textures. |
257 const char kDisableRGBA4444Textures[] = "disable-rgba-4444-textures"; | 246 const char kDisableRGBA4444Textures[] = "disable-rgba-4444-textures"; |
258 | 247 |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 // Enables gesture generation for wheel events. | 491 // Enables gesture generation for wheel events. |
503 const char kEnableWheelGestures[] = "enable-wheel-gestures"; | 492 const char kEnableWheelGestures[] = "enable-wheel-gestures"; |
504 | 493 |
505 // Enable rasterizer that writes directly to GPU memory associated with tiles. | 494 // Enable rasterizer that writes directly to GPU memory associated with tiles. |
506 const char kEnableZeroCopy[] = "enable-zero-copy"; | 495 const char kEnableZeroCopy[] = "enable-zero-copy"; |
507 | 496 |
508 // Explicitly allows additional ports using a comma-separated list of port | 497 // Explicitly allows additional ports using a comma-separated list of port |
509 // numbers. | 498 // numbers. |
510 const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports"; | 499 const char kExplicitlyAllowedPorts[] = "explicitly-allowed-ports"; |
511 | 500 |
512 // Load NPAPI plugins from the specified directory. | |
513 const char kExtraPluginDir[] = "extra-plugin-dir"; | |
514 | |
515 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU | 501 // Always use the Skia GPU backend for drawing layer tiles. Only valid with GPU |
516 // accelerated compositing + impl-side painting. Overrides the | 502 // accelerated compositing + impl-side painting. Overrides the |
517 // kEnableGpuRasterization flag. | 503 // kEnableGpuRasterization flag. |
518 const char kForceGpuRasterization[] = "force-gpu-rasterization"; | 504 const char kForceGpuRasterization[] = "force-gpu-rasterization"; |
519 | 505 |
520 // The number of multisample antialiasing samples for GPU rasterization. | 506 // The number of multisample antialiasing samples for GPU rasterization. |
521 // Requires MSAA support on GPU to have an effect. 0 disables MSAA. | 507 // Requires MSAA support on GPU to have an effect. 0 disables MSAA. |
522 const char kGpuRasterizationMSAASampleCount[] = | 508 const char kGpuRasterizationMSAASampleCount[] = |
523 "gpu-rasterization-msaa-sample-count"; | 509 "gpu-rasterization-msaa-sample-count"; |
524 | 510 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 // Run the GPU process as a thread in the browser process. | 569 // Run the GPU process as a thread in the browser process. |
584 const char kInProcessGPU[] = "in-process-gpu"; | 570 const char kInProcessGPU[] = "in-process-gpu"; |
585 | 571 |
586 // Overrides the timeout, in seconds, that a child process waits for a | 572 // Overrides the timeout, in seconds, that a child process waits for a |
587 // connection from the browser before killing itself. | 573 // connection from the browser before killing itself. |
588 const char kIPCConnectionTimeout[] = "ipc-connection-timeout"; | 574 const char kIPCConnectionTimeout[] = "ipc-connection-timeout"; |
589 | 575 |
590 // Specifies the flags passed to JS engine | 576 // Specifies the flags passed to JS engine |
591 const char kJavaScriptFlags[] = "js-flags"; | 577 const char kJavaScriptFlags[] = "js-flags"; |
592 | 578 |
593 // Load an NPAPI plugin from the specified path. | |
594 const char kLoadPlugin[] = "load-plugin"; | |
595 | |
596 // Logs GPU control list decisions when enforcing blacklist rules. | 579 // Logs GPU control list decisions when enforcing blacklist rules. |
597 const char kLogGpuControlListDecisions[] = "log-gpu-control-list-decisions"; | 580 const char kLogGpuControlListDecisions[] = "log-gpu-control-list-decisions"; |
598 | 581 |
599 // Sets the minimum log level. Valid values are from 0 to 3: | 582 // Sets the minimum log level. Valid values are from 0 to 3: |
600 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. | 583 // INFO = 0, WARNING = 1, LOG_ERROR = 2, LOG_FATAL = 3. |
601 const char kLoggingLevel[] = "log-level"; | 584 const char kLoggingLevel[] = "log-level"; |
602 | 585 |
603 // Enables saving net log events to a file and sets the file name to use. | 586 // Enables saving net log events to a file and sets the file name to use. |
604 const char kLogNetLog[] = "log-net-log"; | 587 const char kLogNetLog[] = "log-net-log"; |
605 | 588 |
606 // Make plugin processes log their sent and received messages to VLOG(1). | |
607 const char kLogPluginMessages[] = "log-plugin-messages"; | |
608 | |
609 // Resizes of the main frame are caused by changing between landscape and | 589 // Resizes of the main frame are caused by changing between landscape and |
610 // portrait mode (i.e. Android) so the page should be rescaled to fit. | 590 // portrait mode (i.e. Android) so the page should be rescaled to fit. |
611 const char kMainFrameResizesAreOrientationChanges[] = | 591 const char kMainFrameResizesAreOrientationChanges[] = |
612 "main-frame-resizes-are-orientation-changes"; | 592 "main-frame-resizes-are-orientation-changes"; |
613 | 593 |
614 // Sets the width and height above which a composited layer will get tiled. | 594 // Sets the width and height above which a composited layer will get tiled. |
615 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; | 595 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; |
616 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; | 596 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; |
617 | 597 |
618 // Sample memory usage with high frequency and store the results to the | 598 // Sample memory usage with high frequency and store the results to the |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
652 // Set the value to '1' to enable the behavior where pages slide in and out in | 632 // Set the value to '1' to enable the behavior where pages slide in and out in |
653 // response to the horizontal overscroll gesture and a screenshot of the target | 633 // response to the horizontal overscroll gesture and a screenshot of the target |
654 // page is shown. | 634 // page is shown. |
655 // Set the value to '2' to enable the simplified overscroll UI where a | 635 // Set the value to '2' to enable the simplified overscroll UI where a |
656 // navigation arrow slides in from the side of the screen in response to the | 636 // navigation arrow slides in from the side of the screen in response to the |
657 // horizontal overscroll gesture. | 637 // horizontal overscroll gesture. |
658 // Defaults to '1'. | 638 // Defaults to '1'. |
659 const char kOverscrollHistoryNavigation[] = | 639 const char kOverscrollHistoryNavigation[] = |
660 "overscroll-history-navigation"; | 640 "overscroll-history-navigation"; |
661 | 641 |
662 // Specifies a command that should be used to launch the plugin process. Useful | |
663 // for running the plugin process through purify or quantify. Ex: | |
664 // --plugin-launcher="path\to\purify /Run=yes" | |
665 const char kPluginLauncher[] = "plugin-launcher"; | |
666 | |
667 // Tells the plugin process the path of the plugin to load | |
668 const char kPluginPath[] = "plugin-path"; | |
669 | |
670 // Causes the process to run as a plugin subprocess. | |
671 const char kPluginProcess[] = "plugin"; | |
672 | |
673 // Causes the plugin process to display a dialog on launch. | |
674 const char kPluginStartupDialog[] = "plugin-startup-dialog"; | |
675 | |
676 // Argument to the process type that indicates a PPAPI broker process type. | 642 // Argument to the process type that indicates a PPAPI broker process type. |
677 const char kPpapiBrokerProcess[] = "ppapi-broker"; | 643 const char kPpapiBrokerProcess[] = "ppapi-broker"; |
678 | 644 |
679 // "Command-line" arguments for the PPAPI Flash; used for debugging options. | 645 // "Command-line" arguments for the PPAPI Flash; used for debugging options. |
680 const char kPpapiFlashArgs[] = "ppapi-flash-args"; | 646 const char kPpapiFlashArgs[] = "ppapi-flash-args"; |
681 | 647 |
682 // Runs PPAPI (Pepper) plugins in-process. | 648 // Runs PPAPI (Pepper) plugins in-process. |
683 const char kPpapiInProcess[] = "ppapi-in-process"; | 649 const char kPpapiInProcess[] = "ppapi-in-process"; |
684 | 650 |
685 // Like kPluginLauncher for PPAPI plugins. | 651 // Specifies a command that should be used to launch the ppapi plugin process. |
| 652 // Useful for running the plugin process through purify or quantify. Ex: |
| 653 // --ppapi-plugin-launcher="path\to\purify /Run=yes" |
686 const char kPpapiPluginLauncher[] = "ppapi-plugin-launcher"; | 654 const char kPpapiPluginLauncher[] = "ppapi-plugin-launcher"; |
687 | 655 |
688 // Argument to the process type that indicates a PPAPI plugin process type. | 656 // Argument to the process type that indicates a PPAPI plugin process type. |
689 const char kPpapiPluginProcess[] = "ppapi"; | 657 const char kPpapiPluginProcess[] = "ppapi"; |
690 | 658 |
691 // Causes the PPAPI sub process to display a dialog on launch. Be sure to use | 659 // Causes the PPAPI sub process to display a dialog on launch. Be sure to use |
692 // --no-sandbox as well or the sandbox won't allow the dialog to display. | 660 // --no-sandbox as well or the sandbox won't allow the dialog to display. |
693 const char kPpapiStartupDialog[] = "ppapi-startup-dialog"; | 661 const char kPpapiStartupDialog[] = "ppapi-startup-dialog"; |
694 | 662 |
695 // Enable the "Process Per Site" process model for all domains. This mode | 663 // Enable the "Process Per Site" process model for all domains. This mode |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 "disable-vaapi-accelerated-video-encode"; | 950 "disable-vaapi-accelerated-video-encode"; |
983 #endif | 951 #endif |
984 | 952 |
985 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 953 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
986 // Allows sending text-to-speech requests to speech-dispatcher, a common | 954 // Allows sending text-to-speech requests to speech-dispatcher, a common |
987 // Linux speech service. Because it's buggy, the user must explicitly | 955 // Linux speech service. Because it's buggy, the user must explicitly |
988 // enable it so that visiting a random webpage can't cause instability. | 956 // enable it so that visiting a random webpage can't cause instability. |
989 const char kEnableSpeechDispatcher[] = "enable-speech-dispatcher"; | 957 const char kEnableSpeechDispatcher[] = "enable-speech-dispatcher"; |
990 #endif | 958 #endif |
991 | 959 |
992 #if defined(OS_MACOSX) | |
993 // Disables support for Core Animation plugins. This is triggered when | |
994 // accelerated compositing is disabled. See http://crbug.com/122430. | |
995 const char kDisableCoreAnimationPlugins[] = | |
996 "disable-core-animation-plugins"; | |
997 #endif | |
998 | |
999 #if defined(OS_WIN) | 960 #if defined(OS_WIN) |
1000 // /prefetch:# arguments to use when launching various process types. It has | 961 // /prefetch:# arguments to use when launching various process types. It has |
1001 // been observed that when file reads are consistent for 3 process launches with | 962 // been observed that when file reads are consistent for 3 process launches with |
1002 // the same /prefetch:# argument, the Windows prefetcher starts issuing reads in | 963 // the same /prefetch:# argument, the Windows prefetcher starts issuing reads in |
1003 // batch at process launch. Because reads depend on the process type, the | 964 // batch at process launch. Because reads depend on the process type, the |
1004 // prefetcher wouldn't be able to observe consistent reads if no /prefetch:# | 965 // prefetcher wouldn't be able to observe consistent reads if no /prefetch:# |
1005 // arguments were used. Note that the browser process has no /prefetch:# | 966 // arguments were used. Note that the browser process has no /prefetch:# |
1006 // argument; as such all other processes must have one in order to avoid | 967 // argument; as such all other processes must have one in order to avoid |
1007 // polluting its profile. Note: # must always be in [1, 8]; otherwise it is | 968 // polluting its profile. Note: # must always be in [1, 8]; otherwise it is |
1008 // ignored by the Windows prefetcher. | 969 // ignored by the Windows prefetcher. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; | 1012 const char kMemoryPressureThresholdsMb[] = "memory-pressure-thresholds-mb"; |
1052 | 1013 |
1053 // Enables the exporting of the tracing events to ETW. This is only supported on | 1014 // Enables the exporting of the tracing events to ETW. This is only supported on |
1054 // Windows Vista and later. | 1015 // Windows Vista and later. |
1055 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; | 1016 const char kTraceExportEventsToETW[] = "trace-export-events-to-etw"; |
1056 #endif | 1017 #endif |
1057 | 1018 |
1058 // Don't dump stuff here, follow the same order as the header. | 1019 // Don't dump stuff here, follow the same order as the header. |
1059 | 1020 |
1060 } // namespace switches | 1021 } // namespace switches |
OLD | NEW |