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 #include "ppapi/features/features.h" | 10 #include "ppapi/features/features.h" |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 // Disable checking for user opt-in for extensions that want to inject script | 220 // Disable checking for user opt-in for extensions that want to inject script |
221 // into file URLs (ie, always allow it). This is used during automated testing. | 221 // into file URLs (ie, always allow it). This is used during automated testing. |
222 const char kDisableExtensionsFileAccessCheck[] = | 222 const char kDisableExtensionsFileAccessCheck[] = |
223 "disable-extensions-file-access-check"; | 223 "disable-extensions-file-access-check"; |
224 | 224 |
225 // Disable the net::URLRequestThrottlerManager functionality for | 225 // Disable the net::URLRequestThrottlerManager functionality for |
226 // requests originating from extensions. | 226 // requests originating from extensions. |
227 const char kDisableExtensionsHttpThrottling[] = | 227 const char kDisableExtensionsHttpThrottling[] = |
228 "disable-extensions-http-throttling"; | 228 "disable-extensions-http-throttling"; |
229 | 229 |
230 // Disables the HTTP/2 protocol. | |
231 const char kDisableHttp2[] = "disable-http2"; | |
232 | |
233 // Disable the behavior that the second click on a launcher item (the click when | 230 // Disable the behavior that the second click on a launcher item (the click when |
234 // the item is already active) minimizes the item. | 231 // the item is already active) minimizes the item. |
235 const char kDisableMinimizeOnSecondLauncherItemClick[] = | 232 const char kDisableMinimizeOnSecondLauncherItemClick[] = |
236 "disable-minimize-on-second-launcher-item-click"; | 233 "disable-minimize-on-second-launcher-item-click"; |
237 | 234 |
238 // Disable auto-reload of error pages if offline. | 235 // Disable auto-reload of error pages if offline. |
239 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; | 236 const char kDisableOfflineAutoReload[] = "disable-offline-auto-reload"; |
240 | 237 |
241 // Disable only auto-reloading error pages when the tab is visible. | 238 // Disable only auto-reloading error pages when the tab is visible. |
242 const char kDisableOfflineAutoReloadVisibleOnly[] = | 239 const char kDisableOfflineAutoReloadVisibleOnly[] = |
(...skipping 11 matching lines...) Expand all Loading... |
254 const char kDisablePrintPreview[] = "disable-print-preview"; | 251 const char kDisablePrintPreview[] = "disable-print-preview"; |
255 | 252 |
256 // Normally when the user attempts to navigate to a page that was the result of | 253 // Normally when the user attempts to navigate to a page that was the result of |
257 // a post we prompt to make sure they want to. This switch may be used to | 254 // a post we prompt to make sure they want to. This switch may be used to |
258 // disable that check. This switch is used during automated testing. | 255 // disable that check. This switch is used during automated testing. |
259 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; | 256 const char kDisablePromptOnRepost[] = "disable-prompt-on-repost"; |
260 | 257 |
261 // Enable background mode for the Push API. | 258 // Enable background mode for the Push API. |
262 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; | 259 const char kDisablePushApiBackgroundMode[] = "disable-push-api-background-mode"; |
263 | 260 |
264 // Disables the QUIC protocol. | |
265 const char kDisableQuic[] = "disable-quic"; | |
266 | |
267 // Disables showing the search geolocation disclosure UI. Used for perf testing. | 261 // Disables showing the search geolocation disclosure UI. Used for perf testing. |
268 const char kDisableSearchGeolocationDisclosure[] = | 262 const char kDisableSearchGeolocationDisclosure[] = |
269 "disable-search-geolocation-disclosure"; | 263 "disable-search-geolocation-disclosure"; |
270 | 264 |
271 // Disable settings in a separate browser window per profile | 265 // Disable settings in a separate browser window per profile |
272 // (see SettingsWindowEnabled() below). | 266 // (see SettingsWindowEnabled() below). |
273 const char kDisableSettingsWindow[] = "disable-settings-window"; | 267 const char kDisableSettingsWindow[] = "disable-settings-window"; |
274 | 268 |
275 // Disables Web Notification custom layouts. | 269 // Disables Web Notification custom layouts. |
276 const char kDisableWebNotificationCustomLayouts[] = | 270 const char kDisableWebNotificationCustomLayouts[] = |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 // Enables tracking of tasks in profiler for viewing via about:profiler. | 392 // Enables tracking of tasks in profiler for viewing via about:profiler. |
399 // To predominantly disable tracking (profiling), use the command line switch: | 393 // To predominantly disable tracking (profiling), use the command line switch: |
400 // --enable-profiling=0 | 394 // --enable-profiling=0 |
401 // Some tracking will still take place at startup, but it will be turned off | 395 // Some tracking will still take place at startup, but it will be turned off |
402 // during chrome_browser_main. | 396 // during chrome_browser_main. |
403 const char kEnableProfiling[] = "enable-profiling"; | 397 const char kEnableProfiling[] = "enable-profiling"; |
404 | 398 |
405 // Enable background mode for the Push API. | 399 // Enable background mode for the Push API. |
406 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; | 400 const char kEnablePushApiBackgroundMode[] = "enable-push-api-background-mode"; |
407 | 401 |
408 // Enables the QUIC protocol. This is a temporary testing flag. | |
409 const char kEnableQuic[] = "enable-quic"; | |
410 | |
411 // Enable settings in a separate browser window per profile | 402 // Enable settings in a separate browser window per profile |
412 // (see SettingsWindowEnabled() below). | 403 // (see SettingsWindowEnabled() below). |
413 const char kEnableSettingsWindow[] = "enable-settings-window"; | 404 const char kEnableSettingsWindow[] = "enable-settings-window"; |
414 | 405 |
415 // Enable the Site Engagement Eviction Policy which evicts temporary storage | 406 // Enable the Site Engagement Eviction Policy which evicts temporary storage |
416 // using the site engagement service. Implicitly enables the site engagement | 407 // using the site engagement service. Implicitly enables the site engagement |
417 // service. | 408 // service. |
418 const char kEnableSiteEngagementEvictionPolicy[] = | 409 const char kEnableSiteEngagementEvictionPolicy[] = |
419 "enable-site-engagement-eviction-policy"; | 410 "enable-site-engagement-eviction-policy"; |
420 | 411 |
421 // Enables the site settings all sites list and site details pages in the Chrome | 412 // Enables the site settings all sites list and site details pages in the Chrome |
422 // settings UI. | 413 // settings UI. |
423 const char kEnableSiteSettings[] = "enable-site-settings"; | 414 const char kEnableSiteSettings[] = "enable-site-settings"; |
424 | 415 |
425 // Enables the supervised user managed bookmarks folder. | 416 // Enables the supervised user managed bookmarks folder. |
426 const char kEnableSupervisedUserManagedBookmarksFolder[] = | 417 const char kEnableSupervisedUserManagedBookmarksFolder[] = |
427 "enable-supervised-user-managed-bookmarks-folder"; | 418 "enable-supervised-user-managed-bookmarks-folder"; |
428 | 419 |
429 // Enables user control over muting tab audio from the tab strip. | 420 // Enables user control over muting tab audio from the tab strip. |
430 const char kEnableTabAudioMuting[] = "enable-tab-audio-muting"; | 421 const char kEnableTabAudioMuting[] = "enable-tab-audio-muting"; |
431 | 422 |
432 // Enables fanciful thumbnail processing. Used with NTP for | 423 // Enables fanciful thumbnail processing. Used with NTP for |
433 // instant-extended-api, where thumbnails are generally smaller. | 424 // instant-extended-api, where thumbnails are generally smaller. |
434 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting"; | 425 const char kEnableThumbnailRetargeting[] = "enable-thumbnail-retargeting"; |
435 | 426 |
436 // Enables Alternate-Protocol when the port is user controlled (> 1024). | |
437 const char kEnableUserAlternateProtocolPorts[] = | |
438 "enable-user-controlled-alternate-protocol-ports"; | |
439 | |
440 // Enables Web Notification custom layouts. | 427 // Enables Web Notification custom layouts. |
441 const char kEnableWebNotificationCustomLayouts[] = | 428 const char kEnableWebNotificationCustomLayouts[] = |
442 "enable-web-notification-custom-layouts"; | 429 "enable-web-notification-custom-layouts"; |
443 | 430 |
444 // If the WebRTC logging private API is active, enables WebRTC event logging. | 431 // If the WebRTC logging private API is active, enables WebRTC event logging. |
445 const char kEnableWebRtcEventLoggingFromExtension[] = | 432 const char kEnableWebRtcEventLoggingFromExtension[] = |
446 "enable-webrtc-event-logging-from-extension"; | 433 "enable-webrtc-event-logging-from-extension"; |
447 | 434 |
448 // Name of the command line flag to force content verification to be on in one | 435 // Name of the command line flag to force content verification to be on in one |
449 // of various modes. | 436 // of various modes. |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 // Disables checking whether we received an acknowledgment when registering | 625 // Disables checking whether we received an acknowledgment when registering |
639 // a supervised user. Also disables the timeout during registration that waits | 626 // a supervised user. Also disables the timeout during registration that waits |
640 // for the ack. Useful when debugging against a server that does not | 627 // for the ack. Useful when debugging against a server that does not |
641 // support notifications. | 628 // support notifications. |
642 const char kNoSupervisedUserAcknowledgmentCheck[] = | 629 const char kNoSupervisedUserAcknowledgmentCheck[] = |
643 "no-managed-user-acknowledgment-check"; | 630 "no-managed-user-acknowledgment-check"; |
644 | 631 |
645 // Launches URL in new browser window. | 632 // Launches URL in new browser window. |
646 const char kOpenInNewWindow[] = "new-window"; | 633 const char kOpenInNewWindow[] = "new-window"; |
647 | 634 |
648 // Specifies a comma separated list of host-port pairs to force use of QUIC on. | |
649 const char kOriginToForceQuicOn[] = "origin-to-force-quic-on"; | |
650 | |
651 // The time that a new chrome process which is delegating to an already running | 635 // The time that a new chrome process which is delegating to an already running |
652 // chrome process started. (See ProcessSingleton for more details.) | 636 // chrome process started. (See ProcessSingleton for more details.) |
653 const char kOriginalProcessStartTime[] = "original-process-start-time"; | 637 const char kOriginalProcessStartTime[] = "original-process-start-time"; |
654 | 638 |
655 // Contains a list of feature names for which origin trial experiments should | 639 // Contains a list of feature names for which origin trial experiments should |
656 // be disabled. Names should be separated by "|" characters. | 640 // be disabled. Names should be separated by "|" characters. |
657 const char kOriginTrialDisabledFeatures[] = "origin-trial-disabled-features"; | 641 const char kOriginTrialDisabledFeatures[] = "origin-trial-disabled-features"; |
658 | 642 |
659 // Contains a list of token signatures for which origin trial experiments should | 643 // Contains a list of token signatures for which origin trial experiments should |
660 // be disabled. Tokens should be separated by "|" characters. | 644 // be disabled. Tokens should be separated by "|" characters. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 | 713 |
730 // Specifies a list of hosts for whom we bypass proxy settings and use direct | 714 // Specifies a list of hosts for whom we bypass proxy settings and use direct |
731 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also | 715 // connections. Ignored if --proxy-auto-detect or --no-proxy-server are also |
732 // specified. This is a comma-separated list of bypass rules. See: | 716 // specified. This is a comma-separated list of bypass rules. See: |
733 // "net/proxy/proxy_bypass_rules.h" for the format of these rules. | 717 // "net/proxy/proxy_bypass_rules.h" for the format of these rules. |
734 const char kProxyBypassList[] = "proxy-bypass-list"; | 718 const char kProxyBypassList[] = "proxy-bypass-list"; |
735 | 719 |
736 // Uses the pac script at the given URL | 720 // Uses the pac script at the given URL |
737 const char kProxyPacUrl[] = "proxy-pac-url"; | 721 const char kProxyPacUrl[] = "proxy-pac-url"; |
738 | 722 |
739 // Specifies a comma separated list of QUIC connection options to send to | |
740 // the server. | |
741 const char kQuicConnectionOptions[] = "quic-connection-options"; | |
742 | |
743 // Specifies the maximum length for a QUIC packet. | |
744 const char kQuicMaxPacketLength[] = "quic-max-packet-length"; | |
745 | |
746 // Specifies the version of QUIC to use. | |
747 const char kQuicVersion[] = "quic-version"; | |
748 // Porvides a list of addresses to discover DevTools remote debugging targets. | 723 // Porvides a list of addresses to discover DevTools remote debugging targets. |
749 // The format is <host>:<port>,...,<host>:port. | 724 // The format is <host>:<port>,...,<host>:port. |
750 const char kRemoteDebuggingTargets[] = "remote-debugging-targets"; | 725 const char kRemoteDebuggingTargets[] = "remote-debugging-targets"; |
751 | 726 |
752 // Indicates the last session should be restored on startup. This overrides the | 727 // Indicates the last session should be restored on startup. This overrides the |
753 // preferences value. Note that this does not force automatic session restore | 728 // preferences value. Note that this does not force automatic session restore |
754 // following a crash, so as to prevent a crash loop. This switch is used to | 729 // following a crash, so as to prevent a crash loop. This switch is used to |
755 // implement support for OS-specific "continue where you left off" functionality | 730 // implement support for OS-specific "continue where you left off" functionality |
756 // on OS X and Windows. | 731 // on OS X and Windows. |
757 const char kRestoreLastSession[] = "restore-last-session"; | 732 const char kRestoreLastSession[] = "restore-last-session"; |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1192 | 1167 |
1193 // ----------------------------------------------------------------------------- | 1168 // ----------------------------------------------------------------------------- |
1194 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. | 1169 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. |
1195 // | 1170 // |
1196 // You were going to just dump your switches here, weren't you? Instead, please | 1171 // You were going to just dump your switches here, weren't you? Instead, please |
1197 // put them in alphabetical order above, or in order inside the appropriate | 1172 // put them in alphabetical order above, or in order inside the appropriate |
1198 // ifdef at the bottom. The order should match the header. | 1173 // ifdef at the bottom. The order should match the header. |
1199 // ----------------------------------------------------------------------------- | 1174 // ----------------------------------------------------------------------------- |
1200 | 1175 |
1201 } // namespace switches | 1176 } // namespace switches |
OLD | NEW |