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 "chrome/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 "disable-extensions-file-access-check"; | 264 "disable-extensions-file-access-check"; |
265 | 265 |
266 // Disable the net::URLRequestThrottlerManager functionality for | 266 // Disable the net::URLRequestThrottlerManager functionality for |
267 // requests originating from extensions. | 267 // requests originating from extensions. |
268 const char kDisableExtensionsHttpThrottling[] = | 268 const char kDisableExtensionsHttpThrottling[] = |
269 "disable-extensions-http-throttling"; | 269 "disable-extensions-http-throttling"; |
270 | 270 |
271 // Disable field trial tests configured in fieldtrial_testing_config.json. | 271 // Disable field trial tests configured in fieldtrial_testing_config.json. |
272 const char kDisableFieldTrialTestingConfig[] = "disable-field-trial-config"; | 272 const char kDisableFieldTrialTestingConfig[] = "disable-field-trial-config"; |
273 | 273 |
274 // Disable HTTP/2 and SPDY/3.1 protocols. | |
275 const char kDisableHttp2[] = "disable-http2"; | |
276 | |
277 // Disable the behavior that the second click on a launcher item (the click when | 274 // Disable the behavior that the second click on a launcher item (the click when |
278 // the item is already active) minimizes the item. | 275 // the item is already active) minimizes the item. |
279 const char kDisableMinimizeOnSecondLauncherItemClick[] = | 276 const char kDisableMinimizeOnSecondLauncherItemClick[] = |
280 "disable-minimize-on-second-launcher-item-click"; | 277 "disable-minimize-on-second-launcher-item-click"; |
281 | 278 |
282 // Disables the new bookmark app system. | 279 // Disables the new bookmark app system. |
283 const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps"; | 280 const char kDisableNewBookmarkApps[] = "disable-new-bookmark-apps"; |
284 | 281 |
285 // Disable auto-reload of error pages if offline. | 282 // Disable auto-reload of error pages if offline. |
286 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; | 283 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
(...skipping 16 matching lines...) Expand all Loading... |
303 const char kDisablePreconnect[] = "disable-preconnect"; | 300 const char kDisablePreconnect[] = "disable-preconnect"; |
304 | 301 |
305 // Disables print preview (For testing, and for users who don't like us. :[ ) | 302 // Disables print preview (For testing, and for users who don't like us. :[ ) |
306 const char kDisablePrintPreview[] = "disable-print-preview"; | 303 const char kDisablePrintPreview[] = "disable-print-preview"; |
307 | 304 |
308 // Normally when the user attempts to navigate to a page that was the result of | 305 // Normally when the user attempts to navigate to a page that was the result of |
309 // a post we prompt to make sure they want to. This switch may be used to | 306 // a post we prompt to make sure they want to. This switch may be used to |
310 // disable that check. This switch is used during automated testing. | 307 // disable that check. This switch is used during automated testing. |
311 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 308 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
312 | 309 |
313 // Disables support for the QUIC protocol. | |
314 const char kDisableQuic[] = "disable-quic"; | |
315 | |
316 // Disable use of Chromium's port selection for the ephemeral port via bind(). | |
317 // This only has an effect if QUIC protocol is enabled. | |
318 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; | |
319 | |
320 // Disables using bubbles for session restore request. | 310 // Disables using bubbles for session restore request. |
321 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; | 311 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; |
322 | 312 |
323 // Disables the Site Engagement service, which records interaction with sites | 313 // Disables the Site Engagement service, which records interaction with sites |
324 // and allocates certain resources accordingly. | 314 // and allocates certain resources accordingly. |
325 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; | 315 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; |
326 | 316 |
327 // Disables Web Notification custom layouts. | 317 // Disables Web Notification custom layouts. |
328 const char kDisableWebNotificationCustomLayouts[] = | 318 const char kDisableWebNotificationCustomLayouts[] = |
329 "disable-web-notification-custom-layouts"; | 319 "disable-web-notification-custom-layouts"; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
489 // To predominantly disable tracking (profiling), use the command line switch: | 479 // To predominantly disable tracking (profiling), use the command line switch: |
490 // --enable-profiling=0 | 480 // --enable-profiling=0 |
491 // Some tracking will still take place at startup, but it will be turned off | 481 // Some tracking will still take place at startup, but it will be turned off |
492 // during chrome_browser_main. | 482 // during chrome_browser_main. |
493 const char kEnableProfiling[] = "enable-profiling"; | 483 const char kEnableProfiling[] = "enable-profiling"; |
494 | 484 |
495 // Enable or disable background mode for the Push API. | 485 // Enable or disable background mode for the Push API. |
496 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; | 486 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; |
497 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; | 487 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; |
498 | 488 |
499 // Enables support for the QUIC protocol. This is a temporary testing flag. | |
500 const char kEnableQuic[] = "enable-quic"; | |
501 | |
502 // Enable use of Chromium's port selection for the ephemeral port via bind(). | |
503 // This only has an effect if QUIC protocol is enabled. | |
504 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; | |
505 | |
506 // If the WebRTC logging private API is active, enables WebRTC event logging. | 489 // If the WebRTC logging private API is active, enables WebRTC event logging. |
507 const char kEnableWebRtcEventLoggingFromExtension[] = | 490 const char kEnableWebRtcEventLoggingFromExtension[] = |
508 "enable-webrtc-event-logging-from-extension"; | 491 "enable-webrtc-event-logging-from-extension"; |
509 | 492 |
510 // Enables support for HTTP alternative services. | |
511 const char kEnableAlternativeServices[] = "enable-alternative-services"; | |
512 | |
513 // Enables using bubbles for session restore request instead of infobars. | 493 // Enables using bubbles for session restore request instead of infobars. |
514 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; | 494 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; |
515 | 495 |
516 // Enable or disable settings in a separate browser window per profile | 496 // Enable or disable settings in a separate browser window per profile |
517 // (see SettingsWindowEnabled() below). | 497 // (see SettingsWindowEnabled() below). |
518 const char kEnableSettingsWindow[] = "enable-settings-window"; | 498 const char kEnableSettingsWindow[] = "enable-settings-window"; |
519 const char kDisableSettingsWindow[] = "disable-settings-window"; | 499 const char kDisableSettingsWindow[] = "disable-settings-window"; |
520 | 500 |
521 // Enable the Site Engagement App Banner which triggers app install banners | 501 // Enable the Site Engagement App Banner which triggers app install banners |
522 // using the site engagement service rather than a navigation-based heuristic. | 502 // using the site engagement service rather than a navigation-based heuristic. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 // | 616 // |
637 // These mappings apply to the endpoint host in a net::URLRequest (the TCP | 617 // These mappings apply to the endpoint host in a net::URLRequest (the TCP |
638 // connect and host resolver in a direct connection, and the CONNECT in an http | 618 // connect and host resolver in a direct connection, and the CONNECT in an http |
639 // proxy connection, and the endpoint host in a SOCKS proxy connection). | 619 // proxy connection, and the endpoint host in a SOCKS proxy connection). |
640 const char kHostRules[] = "host-rules"; | 620 const char kHostRules[] = "host-rules"; |
641 | 621 |
642 // The maximum number of retry attempts to resolve the host. Set this to zero | 622 // The maximum number of retry attempts to resolve the host. Set this to zero |
643 // to disable host resolver retry attempts. | 623 // to disable host resolver retry attempts. |
644 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; | 624 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; |
645 | 625 |
646 // Causes net::URLFetchers to ignore requests for SSL client certificates, | |
647 // causing them to attempt an unauthenticated SSL/TLS session. This is intended | |
648 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix, | |
649 // kSyncServiceURL, etc) | |
650 const char kIgnoreUrlFetcherCertRequests[] = | |
651 "ignore-urlfetcher-cert-requests"; | |
652 | |
653 // Causes the browser to launch directly in incognito mode. | 626 // Causes the browser to launch directly in incognito mode. |
654 const char kIncognito[] = "incognito"; | 627 const char kIncognito[] = "incognito"; |
655 | 628 |
656 // Causes Chrome to initiate an installation flow for the given app. | 629 // Causes Chrome to initiate an installation flow for the given app. |
657 const char kInstallChromeApp[] = "install-chrome-app"; | 630 const char kInstallChromeApp[] = "install-chrome-app"; |
658 | 631 |
659 // A list of whitelists to install for a supervised user, for testing. | 632 // A list of whitelists to install for a supervised user, for testing. |
660 // The list is of the following form: <id>[:<name>],[<id>[:<name>],...] | 633 // The list is of the following form: <id>[:<name>],[<id>[:<name>],...] |
661 const char kInstallSupervisedUserWhitelists[] = | 634 const char kInstallSupervisedUserWhitelists[] = |
662 "install-supervised-user-whitelists"; | 635 "install-supervised-user-whitelists"; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 const char kNoSupervisedUserAcknowledgmentCheck[] = | 744 const char kNoSupervisedUserAcknowledgmentCheck[] = |
772 "no-managed-user-acknowledgment-check"; | 745 "no-managed-user-acknowledgment-check"; |
773 | 746 |
774 // Specifies the maximum number of threads to use for running the Proxy | 747 // Specifies the maximum number of threads to use for running the Proxy |
775 // Autoconfig (PAC) script. | 748 // Autoconfig (PAC) script. |
776 const char kNumPacThreads[] = "num-pac-threads"; | 749 const char kNumPacThreads[] = "num-pac-threads"; |
777 | 750 |
778 // Launches URL in new browser window. | 751 // Launches URL in new browser window. |
779 const char kOpenInNewWindow[] = "new-window"; | 752 const char kOpenInNewWindow[] = "new-window"; |
780 | 753 |
781 // Specifies a comma separated list of host/port pairs to force use of QUIC. | |
782 const char kOriginToForceQuicOn[] = "origin-to-force-quic-on"; | |
783 | |
784 // The time that a new chrome process which is delegating to an already running | 754 // The time that a new chrome process which is delegating to an already running |
785 // chrome process started. (See ProcessSingleton for more details.) | 755 // chrome process started. (See ProcessSingleton for more details.) |
786 const char kOriginalProcessStartTime[] = "original-process-start-time"; | 756 const char kOriginalProcessStartTime[] = "original-process-start-time"; |
787 | 757 |
788 // Overrides the default public key for checking origin trial tokens. | 758 // Overrides the default public key for checking origin trial tokens. |
789 const char kOriginTrialPublicKey[] = "origin-trial-public-key"; | 759 const char kOriginTrialPublicKey[] = "origin-trial-public-key"; |
790 | 760 |
791 // Packages an extension to a .crx installable file from a given directory. | 761 // Packages an extension to a .crx installable file from a given directory. |
792 const char kPackExtension[] = "pack-extension"; | 762 const char kPackExtension[] = "pack-extension"; |
793 | 763 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 // affects HTTP and HTTPS requests. ARC-apps use only HTTP proxy server with the | 852 // affects HTTP and HTTPS requests. ARC-apps use only HTTP proxy server with the |
883 // highest priority. | 853 // highest priority. |
884 const char kProxyServer[] = "proxy-server"; | 854 const char kProxyServer[] = "proxy-server"; |
885 | 855 |
886 // Specifies the time for tab purging and suspending. When the indicated time | 856 // Specifies the time for tab purging and suspending. When the indicated time |
887 // passes after a tab goes backgrounded, the backgrounded tab is purged and | 857 // passes after a tab goes backgrounded, the backgrounded tab is purged and |
888 // suspended to save memory usage. The default value is "0" and purging and | 858 // suspended to save memory usage. The default value is "0" and purging and |
889 // suspending never happen. | 859 // suspending never happen. |
890 const char kPurgeAndSuspendTime[] = "purge-and-suspend-time"; | 860 const char kPurgeAndSuspendTime[] = "purge-and-suspend-time"; |
891 | 861 |
892 // Specifies a comma separated list of QUIC connection options to send to | |
893 // the server. | |
894 const char kQuicConnectionOptions[] = "quic-connection-options"; | |
895 | |
896 // Specifies a comma separated list of hosts to whitelist QUIC for. | |
897 const char kQuicHostWhitelist[] = "quic-host-whitelist"; | |
898 | |
899 // Specifies the maximum length for a QUIC packet. | |
900 const char kQuicMaxPacketLength[] = "quic-max-packet-length"; | |
901 | |
902 // Specifies the version of QUIC to use. | |
903 const char kQuicVersion[] = "quic-version"; | |
904 | |
905 // Porvides a list of addresses to discover DevTools remote debugging targets. | 862 // Porvides a list of addresses to discover DevTools remote debugging targets. |
906 // The format is <host>:<port>,...,<host>:port. | 863 // The format is <host>:<port>,...,<host>:port. |
907 const char kRemoteDebuggingTargets[] = "remote-debugging-targets"; | 864 const char kRemoteDebuggingTargets[] = "remote-debugging-targets"; |
908 | 865 |
909 // Indicates the last session should be restored on startup. This overrides the | 866 // Indicates the last session should be restored on startup. This overrides the |
910 // preferences value and is primarily intended for testing. The value of this | 867 // preferences value and is primarily intended for testing. The value of this |
911 // switch is the number of tabs to wait until loaded before 'load completed' is | 868 // switch is the number of tabs to wait until loaded before 'load completed' is |
912 // sent to the ui_test. | 869 // sent to the ui_test. |
913 const char kRestoreLastSession[] = "restore-last-session"; | 870 const char kRestoreLastSession[] = "restore-last-session"; |
914 | 871 |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1375 | 1332 |
1376 // ----------------------------------------------------------------------------- | 1333 // ----------------------------------------------------------------------------- |
1377 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1334 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1378 // | 1335 // |
1379 // You were going to just dump your switches here, weren't you? Instead, please | 1336 // You were going to just dump your switches here, weren't you? Instead, please |
1380 // put them in alphabetical order above, or in order inside the appropriate | 1337 // put them in alphabetical order above, or in order inside the appropriate |
1381 // ifdef at the bottom. The order should match the header. | 1338 // ifdef at the bottom. The order should match the header. |
1382 // ----------------------------------------------------------------------------- | 1339 // ----------------------------------------------------------------------------- |
1383 | 1340 |
1384 } // namespace switches | 1341 } // namespace switches |
OLD | NEW |