| 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 // Disables showing popular sites on the NTP. | 282 // Disables showing popular sites on the NTP. |
| 286 const char kDisableNTPPopularSites[] = "disable-ntp-popular-sites"; | 283 const char kDisableNTPPopularSites[] = "disable-ntp-popular-sites"; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 306 const char kDisablePreconnect[] = "disable-preconnect"; | 303 const char kDisablePreconnect[] = "disable-preconnect"; |
| 307 | 304 |
| 308 // Disables print preview (For testing, and for users who don't like us. :[ ) | 305 // Disables print preview (For testing, and for users who don't like us. :[ ) |
| 309 const char kDisablePrintPreview[] = "disable-print-preview"; | 306 const char kDisablePrintPreview[] = "disable-print-preview"; |
| 310 | 307 |
| 311 // Normally when the user attempts to navigate to a page that was the result of | 308 // Normally when the user attempts to navigate to a page that was the result of |
| 312 // a post we prompt to make sure they want to. This switch may be used to | 309 // a post we prompt to make sure they want to. This switch may be used to |
| 313 // disable that check. This switch is used during automated testing. | 310 // disable that check. This switch is used during automated testing. |
| 314 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 311 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
| 315 | 312 |
| 316 // Disables support for the QUIC protocol. | |
| 317 const char kDisableQuic[] = "disable-quic"; | |
| 318 | |
| 319 // Disable use of Chromium's port selection for the ephemeral port via bind(). | |
| 320 // This only has an effect if QUIC protocol is enabled. | |
| 321 const char kDisableQuicPortSelection[] = "disable-quic-port-selection"; | |
| 322 | |
| 323 // Disables using bubbles for session restore request. | 313 // Disables using bubbles for session restore request. |
| 324 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; | 314 const char kDisableSessionCrashedBubble[] = "disable-session-crashed-bubble"; |
| 325 | 315 |
| 326 // Disables the Site Engagement service, which records interaction with sites | 316 // Disables the Site Engagement service, which records interaction with sites |
| 327 // and allocates certain resources accordingly. | 317 // and allocates certain resources accordingly. |
| 328 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; | 318 const char kDisableSiteEngagementService[] = "disable-site-engagement-service"; |
| 329 | 319 |
| 330 // Disables Web Notification custom layouts. | 320 // Disables Web Notification custom layouts. |
| 331 const char kDisableWebNotificationCustomLayouts[] = | 321 const char kDisableWebNotificationCustomLayouts[] = |
| 332 "disable-web-notification-custom-layouts"; | 322 "disable-web-notification-custom-layouts"; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 // To predominantly disable tracking (profiling), use the command line switch: | 475 // To predominantly disable tracking (profiling), use the command line switch: |
| 486 // --enable-profiling=0 | 476 // --enable-profiling=0 |
| 487 // Some tracking will still take place at startup, but it will be turned off | 477 // Some tracking will still take place at startup, but it will be turned off |
| 488 // during chrome_browser_main. | 478 // during chrome_browser_main. |
| 489 const char kEnableProfiling[] = "enable-profiling"; | 479 const char kEnableProfiling[] = "enable-profiling"; |
| 490 | 480 |
| 491 // Enable or disable background mode for the Push API. | 481 // Enable or disable background mode for the Push API. |
| 492 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; | 482 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; |
| 493 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; | 483 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; |
| 494 | 484 |
| 495 // Enables support for the QUIC protocol. This is a temporary testing flag. | |
| 496 const char kEnableQuic[] = "enable-quic"; | |
| 497 | |
| 498 // Enable use of Chromium's port selection for the ephemeral port via bind(). | |
| 499 // This only has an effect if QUIC protocol is enabled. | |
| 500 const char kEnableQuicPortSelection[] = "enable-quic-port-selection"; | |
| 501 | |
| 502 // If the WebRTC logging private API is active, enables WebRTC event logging. | 485 // If the WebRTC logging private API is active, enables WebRTC event logging. |
| 503 const char kEnableWebRtcEventLoggingFromExtension[] = | 486 const char kEnableWebRtcEventLoggingFromExtension[] = |
| 504 "enable-webrtc-event-logging-from-extension"; | 487 "enable-webrtc-event-logging-from-extension"; |
| 505 | 488 |
| 506 // Enables support for HTTP alternative services. | |
| 507 const char kEnableAlternativeServices[] = "enable-alternative-services"; | |
| 508 | |
| 509 // Enables using bubbles for session restore request instead of infobars. | 489 // Enables using bubbles for session restore request instead of infobars. |
| 510 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; | 490 const char kEnableSessionCrashedBubble[] = "enable-session-crashed-bubble"; |
| 511 | 491 |
| 512 // Enable or disable settings in a separate browser window per profile | 492 // Enable or disable settings in a separate browser window per profile |
| 513 // (see SettingsWindowEnabled() below). | 493 // (see SettingsWindowEnabled() below). |
| 514 const char kEnableSettingsWindow[] = "enable-settings-window"; | 494 const char kEnableSettingsWindow[] = "enable-settings-window"; |
| 515 const char kDisableSettingsWindow[] = "disable-settings-window"; | 495 const char kDisableSettingsWindow[] = "disable-settings-window"; |
| 516 | 496 |
| 517 // Enable the Site Engagement App Banner which triggers app install banners | 497 // Enable the Site Engagement App Banner which triggers app install banners |
| 518 // using the site engagement service rather than a navigation-based heuristic. | 498 // using the site engagement service rather than a navigation-based heuristic. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 627 // | 607 // |
| 628 // These mappings apply to the endpoint host in a net::URLRequest (the TCP | 608 // These mappings apply to the endpoint host in a net::URLRequest (the TCP |
| 629 // connect and host resolver in a direct connection, and the CONNECT in an http | 609 // connect and host resolver in a direct connection, and the CONNECT in an http |
| 630 // proxy connection, and the endpoint host in a SOCKS proxy connection). | 610 // proxy connection, and the endpoint host in a SOCKS proxy connection). |
| 631 const char kHostRules[] = "host-rules"; | 611 const char kHostRules[] = "host-rules"; |
| 632 | 612 |
| 633 // The maximum number of retry attempts to resolve the host. Set this to zero | 613 // The maximum number of retry attempts to resolve the host. Set this to zero |
| 634 // to disable host resolver retry attempts. | 614 // to disable host resolver retry attempts. |
| 635 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; | 615 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; |
| 636 | 616 |
| 637 // Causes net::URLFetchers to ignore requests for SSL client certificates, | |
| 638 // causing them to attempt an unauthenticated SSL/TLS session. This is intended | |
| 639 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix, | |
| 640 // kSyncServiceURL, etc) | |
| 641 const char kIgnoreUrlFetcherCertRequests[] = | |
| 642 "ignore-urlfetcher-cert-requests"; | |
| 643 | |
| 644 // Causes the browser to launch directly in incognito mode. | 617 // Causes the browser to launch directly in incognito mode. |
| 645 const char kIncognito[] = "incognito"; | 618 const char kIncognito[] = "incognito"; |
| 646 | 619 |
| 647 // Causes Chrome to initiate an installation flow for the given app. | 620 // Causes Chrome to initiate an installation flow for the given app. |
| 648 const char kInstallChromeApp[] = "install-chrome-app"; | 621 const char kInstallChromeApp[] = "install-chrome-app"; |
| 649 | 622 |
| 650 // A list of whitelists to install for a supervised user, for testing. | 623 // A list of whitelists to install for a supervised user, for testing. |
| 651 // The list is of the following form: <id>[:<name>],[<id>[:<name>],...] | 624 // The list is of the following form: <id>[:<name>],[<id>[:<name>],...] |
| 652 const char kInstallSupervisedUserWhitelists[] = | 625 const char kInstallSupervisedUserWhitelists[] = |
| 653 "install-supervised-user-whitelists"; | 626 "install-supervised-user-whitelists"; |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 const char kNoSupervisedUserAcknowledgmentCheck[] = | 735 const char kNoSupervisedUserAcknowledgmentCheck[] = |
| 763 "no-managed-user-acknowledgment-check"; | 736 "no-managed-user-acknowledgment-check"; |
| 764 | 737 |
| 765 // Specifies the maximum number of threads to use for running the Proxy | 738 // Specifies the maximum number of threads to use for running the Proxy |
| 766 // Autoconfig (PAC) script. | 739 // Autoconfig (PAC) script. |
| 767 const char kNumPacThreads[] = "num-pac-threads"; | 740 const char kNumPacThreads[] = "num-pac-threads"; |
| 768 | 741 |
| 769 // Launches URL in new browser window. | 742 // Launches URL in new browser window. |
| 770 const char kOpenInNewWindow[] = "new-window"; | 743 const char kOpenInNewWindow[] = "new-window"; |
| 771 | 744 |
| 772 // Specifies a comma separated list of host/port pairs to force use of QUIC. | |
| 773 const char kOriginToForceQuicOn[] = "origin-to-force-quic-on"; | |
| 774 | |
| 775 // The time that a new chrome process which is delegating to an already running | 745 // The time that a new chrome process which is delegating to an already running |
| 776 // chrome process started. (See ProcessSingleton for more details.) | 746 // chrome process started. (See ProcessSingleton for more details.) |
| 777 const char kOriginalProcessStartTime[] = "original-process-start-time"; | 747 const char kOriginalProcessStartTime[] = "original-process-start-time"; |
| 778 | 748 |
| 779 // Packages an extension to a .crx installable file from a given directory. | 749 // Packages an extension to a .crx installable file from a given directory. |
| 780 const char kPackExtension[] = "pack-extension"; | 750 const char kPackExtension[] = "pack-extension"; |
| 781 | 751 |
| 782 // Optional PEM private key to use in signing packaged .crx. | 752 // Optional PEM private key to use in signing packaged .crx. |
| 783 const char kPackExtensionKey[] = "pack-extension-key"; | 753 const char kPackExtensionKey[] = "pack-extension-key"; |
| 784 | 754 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 864 const char kProxyBypassList[] = "proxy-bypass-list"; | 834 const char kProxyBypassList[] = "proxy-bypass-list"; |
| 865 | 835 |
| 866 // Uses the pac script at the given URL | 836 // Uses the pac script at the given URL |
| 867 const char kProxyPacUrl[] = "proxy-pac-url"; | 837 const char kProxyPacUrl[] = "proxy-pac-url"; |
| 868 | 838 |
| 869 // Uses a specified proxy server, overrides system settings. This switch only | 839 // Uses a specified proxy server, overrides system settings. This switch only |
| 870 // affects HTTP and HTTPS requests. ARC-apps use only HTTP proxy server with the | 840 // affects HTTP and HTTPS requests. ARC-apps use only HTTP proxy server with the |
| 871 // highest priority. | 841 // highest priority. |
| 872 const char kProxyServer[] = "proxy-server"; | 842 const char kProxyServer[] = "proxy-server"; |
| 873 | 843 |
| 874 // Specifies a comma separated list of QUIC connection options to send to | |
| 875 // the server. | |
| 876 const char kQuicConnectionOptions[] = "quic-connection-options"; | |
| 877 | |
| 878 // Specifies a comma separated list of hosts to whitelist QUIC for. | |
| 879 const char kQuicHostWhitelist[] = "quic-host-whitelist"; | |
| 880 | |
| 881 // Specifies the maximum length for a QUIC packet. | |
| 882 const char kQuicMaxPacketLength[] = "quic-max-packet-length"; | |
| 883 | |
| 884 // Specifies the version of QUIC to use. | |
| 885 const char kQuicVersion[] = "quic-version"; | |
| 886 | |
| 887 // Porvides a list of addresses to discover DevTools remote debugging targets. | 844 // Porvides a list of addresses to discover DevTools remote debugging targets. |
| 888 // The format is <host>:<port>,...,<host>:port. | 845 // The format is <host>:<port>,...,<host>:port. |
| 889 const char kRemoteDebuggingTargets[] = "remote-debugging-targets"; | 846 const char kRemoteDebuggingTargets[] = "remote-debugging-targets"; |
| 890 | 847 |
| 891 // Indicates the last session should be restored on startup. This overrides the | 848 // Indicates the last session should be restored on startup. This overrides the |
| 892 // preferences value and is primarily intended for testing. The value of this | 849 // preferences value and is primarily intended for testing. The value of this |
| 893 // switch is the number of tabs to wait until loaded before 'load completed' is | 850 // switch is the number of tabs to wait until loaded before 'load completed' is |
| 894 // sent to the ui_test. | 851 // sent to the ui_test. |
| 895 const char kRestoreLastSession[] = "restore-last-session"; | 852 const char kRestoreLastSession[] = "restore-last-session"; |
| 896 | 853 |
| (...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1349 | 1306 |
| 1350 // ----------------------------------------------------------------------------- | 1307 // ----------------------------------------------------------------------------- |
| 1351 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1308 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1352 // | 1309 // |
| 1353 // You were going to just dump your switches here, weren't you? Instead, please | 1310 // You were going to just dump your switches here, weren't you? Instead, please |
| 1354 // put them in alphabetical order above, or in order inside the appropriate | 1311 // put them in alphabetical order above, or in order inside the appropriate |
| 1355 // ifdef at the bottom. The order should match the header. | 1312 // ifdef at the bottom. The order should match the header. |
| 1356 // ----------------------------------------------------------------------------- | 1313 // ----------------------------------------------------------------------------- |
| 1357 | 1314 |
| 1358 } // namespace switches | 1315 } // namespace switches |
| OLD | NEW |