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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 // To predominantly disable tracking (profiling), use the command line switch: | 467 // To predominantly disable tracking (profiling), use the command line switch: |
478 // --enable-profiling=0 | 468 // --enable-profiling=0 |
479 // Some tracking will still take place at startup, but it will be turned off | 469 // Some tracking will still take place at startup, but it will be turned off |
480 // during chrome_browser_main. | 470 // during chrome_browser_main. |
481 const char kEnableProfiling[] = "enable-profiling"; | 471 const char kEnableProfiling[] = "enable-profiling"; |
482 | 472 |
483 // Enable or disable background mode for the Push API. | 473 // Enable or disable background mode for the Push API. |
484 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; | 474 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; |
485 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; | 475 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; |
486 | 476 |
487 // Enables support for the QUIC protocol. This is a temporary testing flag. | |
488 const char kEnableQuic[] = "enable-quic"; | |
489 | |
490 // Enable use of Chromium's port selection for the ephemeral port via bind(). | |
491 // This only has an effect if QUIC protocol is enabled. | |
492 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; | |
493 | |
494 // If the WebRTC logging private API is active, enables WebRTC event logging. | 477 // If the WebRTC logging private API is active, enables WebRTC event logging. |
495 const char kEnableWebRtcEventLoggingFromExtension[] = | 478 const char kEnableWebRtcEventLoggingFromExtension[] = |
496 "enable-webrtc-event-logging-from-extension"; | 479 "enable-webrtc-event-logging-from-extension"; |
497 | 480 |
498 // Enables support for HTTP alternative services. | |
499 const char kEnableAlternativeServices[] = "enable-alternative-services"; | |
500 | |
501 // Enables using bubbles for session restore request instead of infobars. | 481 // Enables using bubbles for session restore request instead of infobars. |
502 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; | 482 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; |
503 | 483 |
504 // Enable or disable settings in a separate browser window per profile | 484 // Enable or disable settings in a separate browser window per profile |
505 // (see SettingsWindowEnabled() below). | 485 // (see SettingsWindowEnabled() below). |
506 const char kEnableSettingsWindow[] = "enable-settings-window"; | 486 const char kEnableSettingsWindow[] = "enable-settings-window"; |
507 const char kDisableSettingsWindow[] = "disable-settings-window"; | 487 const char kDisableSettingsWindow[] = "disable-settings-window"; |
508 | 488 |
509 // Enable the Site Engagement App Banner which triggers app install banners | 489 // Enable the Site Engagement App Banner which triggers app install banners |
510 // using the site engagement service rather than a navigation-based heuristic. | 490 // using the site engagement service rather than a navigation-based heuristic. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
619 // | 599 // |
620 // These mappings apply to the endpoint host in a net::URLRequest (the TCP | 600 // These mappings apply to the endpoint host in a net::URLRequest (the TCP |
621 // connect and host resolver in a direct connection, and the CONNECT in an http | 601 // connect and host resolver in a direct connection, and the CONNECT in an http |
622 // proxy connection, and the endpoint host in a SOCKS proxy connection). | 602 // proxy connection, and the endpoint host in a SOCKS proxy connection). |
623 const char kHostRules[] = "host-rules"; | 603 const char kHostRules[] = "host-rules"; |
624 | 604 |
625 // The maximum number of retry attempts to resolve the host. Set this to zero | 605 // The maximum number of retry attempts to resolve the host. Set this to zero |
626 // to disable host resolver retry attempts. | 606 // to disable host resolver retry attempts. |
627 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; | 607 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; |
628 | 608 |
629 // Causes net::URLFetchers to ignore requests for SSL client certificates, | |
630 // causing them to attempt an unauthenticated SSL/TLS session. This is intended | |
631 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix, | |
632 // kSyncServiceURL, etc) | |
633 const char kIgnoreUrlFetcherCertRequests[] = | |
634 "ignore-urlfetcher-cert-requests"; | |
635 | |
636 // Causes the browser to launch directly in incognito mode. | 609 // Causes the browser to launch directly in incognito mode. |
637 const char kIncognito[] = "incognito"; | 610 const char kIncognito[] = "incognito"; |
638 | 611 |
639 // Causes Chrome to initiate an installation flow for the given app. | 612 // Causes Chrome to initiate an installation flow for the given app. |
640 const char kInstallChromeApp[] = "install-chrome-app"; | 613 const char kInstallChromeApp[] = "install-chrome-app"; |
641 | 614 |
642 // A list of whitelists to install for a supervised user, for testing. | 615 // A list of whitelists to install for a supervised user, for testing. |
643 // The list is of the following form: <id>[:<name>],[<id>[:<name>],...] | 616 // The list is of the following form: <id>[:<name>],[<id>[:<name>],...] |
644 const char kInstallSupervisedUserWhitelists[] = | 617 const char kInstallSupervisedUserWhitelists[] = |
645 "install-supervised-user-whitelists"; | 618 "install-supervised-user-whitelists"; |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 const char kNoSupervisedUserAcknowledgmentCheck[] = | 727 const char kNoSupervisedUserAcknowledgmentCheck[] = |
755 "no-managed-user-acknowledgment-check"; | 728 "no-managed-user-acknowledgment-check"; |
756 | 729 |
757 // Specifies the maximum number of threads to use for running the Proxy | 730 // Specifies the maximum number of threads to use for running the Proxy |
758 // Autoconfig (PAC) script. | 731 // Autoconfig (PAC) script. |
759 const char kNumPacThreads[] = "num-pac-threads"; | 732 const char kNumPacThreads[] = "num-pac-threads"; |
760 | 733 |
761 // Launches URL in new browser window. | 734 // Launches URL in new browser window. |
762 const char kOpenInNewWindow[] = "new-window"; | 735 const char kOpenInNewWindow[] = "new-window"; |
763 | 736 |
764 // Specifies a comma separated list of host/port pairs to force use of QUIC. | |
765 const char kOriginToForceQuicOn[] = "origin-to-force-quic-on"; | |
766 | |
767 // The time that a new chrome process which is delegating to an already running | 737 // The time that a new chrome process which is delegating to an already running |
768 // chrome process started. (See ProcessSingleton for more details.) | 738 // chrome process started. (See ProcessSingleton for more details.) |
769 const char kOriginalProcessStartTime[] = "original-process-start-time"; | 739 const char kOriginalProcessStartTime[] = "original-process-start-time"; |
770 | 740 |
771 // Overrides the default public key for checking origin trial tokens. | 741 // Overrides the default public key for checking origin trial tokens. |
772 const char kOriginTrialPublicKey[] = "origin-trial-public-key"; | 742 const char kOriginTrialPublicKey[] = "origin-trial-public-key"; |
773 | 743 |
774 // Packages an extension to a .crx installable file from a given directory. | 744 // Packages an extension to a .crx installable file from a given directory. |
775 const char kPackExtension[] = "pack-extension"; | 745 const char kPackExtension[] = "pack-extension"; |
776 | 746 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 const char kProxyBypassList[] = "proxy-bypass-list"; | 829 const char kProxyBypassList[] = "proxy-bypass-list"; |
860 | 830 |
861 // Uses the pac script at the given URL | 831 // Uses the pac script at the given URL |
862 const char kProxyPacUrl[] = "proxy-pac-url"; | 832 const char kProxyPacUrl[] = "proxy-pac-url"; |
863 | 833 |
864 // Uses a specified proxy server, overrides system settings. This switch only | 834 // Uses a specified proxy server, overrides system settings. This switch only |
865 // affects HTTP and HTTPS requests. ARC-apps use only HTTP proxy server with the | 835 // affects HTTP and HTTPS requests. ARC-apps use only HTTP proxy server with the |
866 // highest priority. | 836 // highest priority. |
867 const char kProxyServer[] = "proxy-server"; | 837 const char kProxyServer[] = "proxy-server"; |
868 | 838 |
869 // Specifies a comma separated list of QUIC connection options to send to | |
870 // the server. | |
871 const char kQuicConnectionOptions[] = "quic-connection-options"; | |
872 | |
873 // Specifies a comma separated list of hosts to whitelist QUIC for. | |
874 const char kQuicHostWhitelist[] = "quic-host-whitelist"; | |
875 | |
876 // Specifies the maximum length for a QUIC packet. | |
877 const char kQuicMaxPacketLength[] = "quic-max-packet-length"; | |
878 | |
879 // Specifies the version of QUIC to use. | |
880 const char kQuicVersion[] = "quic-version"; | |
881 | |
882 // Porvides a list of addresses to discover DevTools remote debugging targets. | 839 // Porvides a list of addresses to discover DevTools remote debugging targets. |
883 // The format is <host>:<port>,...,<host>:port. | 840 // The format is <host>:<port>,...,<host>:port. |
884 const char kRemoteDebuggingTargets[] = "remote-debugging-targets"; | 841 const char kRemoteDebuggingTargets[] = "remote-debugging-targets"; |
885 | 842 |
886 // Indicates the last session should be restored on startup. This overrides the | 843 // Indicates the last session should be restored on startup. This overrides the |
887 // preferences value and is primarily intended for testing. The value of this | 844 // preferences value and is primarily intended for testing. The value of this |
888 // switch is the number of tabs to wait until loaded before 'load completed' is | 845 // switch is the number of tabs to wait until loaded before 'load completed' is |
889 // sent to the ui_test. | 846 // sent to the ui_test. |
890 const char kRestoreLastSession[] = "restore-last-session"; | 847 const char kRestoreLastSession[] = "restore-last-session"; |
891 | 848 |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1344 | 1301 |
1345 // ----------------------------------------------------------------------------- | 1302 // ----------------------------------------------------------------------------- |
1346 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1303 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1347 // | 1304 // |
1348 // You were going to just dump your switches here, weren't you? Instead, please | 1305 // You were going to just dump your switches here, weren't you? Instead, please |
1349 // put them in alphabetical order above, or in order inside the appropriate | 1306 // put them in alphabetical order above, or in order inside the appropriate |
1350 // ifdef at the bottom. The order should match the header. | 1307 // ifdef at the bottom. The order should match the header. |
1351 // ----------------------------------------------------------------------------- | 1308 // ----------------------------------------------------------------------------- |
1352 | 1309 |
1353 } // namespace switches | 1310 } // namespace switches |
OLD | NEW |