OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 8 |
9 namespace switches { | 9 namespace switches { |
10 | 10 |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 "auth-negotiate-delegate-whitelist"; | 70 "auth-negotiate-delegate-whitelist"; |
71 | 71 |
72 // HTTP authentication schemes to enable. This is a comma separated list | 72 // HTTP authentication schemes to enable. This is a comma separated list |
73 // of authentication schemes (basic, digest, ntlm, and negotiate). By default | 73 // of authentication schemes (basic, digest, ntlm, and negotiate). By default |
74 // all schemes are enabled. The primary use of this command line flag is to help | 74 // all schemes are enabled. The primary use of this command line flag is to help |
75 // triage autentication-related issues reported by end-users. | 75 // triage autentication-related issues reported by end-users. |
76 const char kAuthSchemes[] = "auth-schemes"; | 76 const char kAuthSchemes[] = "auth-schemes"; |
77 | 77 |
78 // Whitelist of servers which NTLM and Negotiate can automatically authenticate | 78 // Whitelist of servers which NTLM and Negotiate can automatically authenticate |
79 // with using the default credentials of the currently logged in user. | 79 // with using the default credentials of the currently logged in user. |
80 const char kAuthServerWhitelist[] = "auth-server-whitelist"; | 80 const char kAuthServerWhitelist[] = "auth-server-whitelist"; |
81 | 81 |
82 // The value of this switch tells the app to listen for and broadcast | 82 // The value of this switch tells the app to listen for and broadcast |
83 // automation-related messages on IPC channel with the given ID. | 83 // automation-related messages on IPC channel with the given ID. |
84 const char kAutomationClientChannelID[] = "automation-channel"; | 84 const char kAutomationClientChannelID[] = "automation-channel"; |
85 | 85 |
86 // When the option to block third-party cookies from being set is enabled, | 86 // When the option to block third-party cookies from being set is enabled, |
87 // also block third-party cookies from being read. | 87 // also block third-party cookies from being read. |
88 const char kBlockReadingThirdPartyCookies[] = | 88 const char kBlockReadingThirdPartyCookies[] = |
89 "block-reading-third-party-cookies"; | 89 "block-reading-third-party-cookies"; |
90 | 90 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 | 129 |
130 // Causes the browser process to inspect loaded and registered DLLs for | 130 // Causes the browser process to inspect loaded and registered DLLs for |
131 // known conflicts and warn the user. | 131 // known conflicts and warn the user. |
132 const char kConflictingModulesCheck[] = "conflicting-modules-check"; | 132 const char kConflictingModulesCheck[] = "conflicting-modules-check"; |
133 | 133 |
134 // The Country we should use. This is normally obtained from the operating | 134 // The Country we should use. This is normally obtained from the operating |
135 // system during first run and cached in the preferences afterwards. This is a | 135 // system during first run and cached in the preferences afterwards. This is a |
136 // string value, the 2 letter code from ISO 3166-1. | 136 // string value, the 2 letter code from ISO 3166-1. |
137 const char kCountry[] = "country"; | 137 const char kCountry[] = "country"; |
138 | 138 |
| 139 // If enabled, tries to load inspector files from disk (allows reloading of |
| 140 // devtool files without having to restart the browser). |
| 141 const char kDebugDevTools[] = "debug-devtools"; |
| 142 |
139 // Enables support to debug printing subsystem. | 143 // Enables support to debug printing subsystem. |
140 const char kDebugPrint[] = "debug-print"; | 144 const char kDebugPrint[] = "debug-print"; |
141 | 145 |
142 // Specifies the URL at which to fetch configuration policy from the device | 146 // Specifies the URL at which to fetch configuration policy from the device |
143 // management backend. Specifying this switch turns on managed policy from the | 147 // management backend. Specifying this switch turns on managed policy from the |
144 // device management backend. | 148 // device management backend. |
145 const char kDeviceManagementUrl[] = "device-management-url"; | 149 const char kDeviceManagementUrl[] = "device-management-url"; |
146 | 150 |
147 // Specifies the directory in which to store the shared device policy cache | 151 // Specifies the directory in which to store the shared device policy cache |
148 // file. If not specified, device policy will be disabled. | 152 // file. If not specified, device policy will be disabled. |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 | 237 |
234 // Suppresses hang monitor dialogs in renderer processes. This may allow slow | 238 // Suppresses hang monitor dialogs in renderer processes. This may allow slow |
235 // unload handlers on a page to prevent the tab from closing, but the Task | 239 // unload handlers on a page to prevent the tab from closing, but the Task |
236 // Manager can be used to terminate the offending process in this case. | 240 // Manager can be used to terminate the offending process in this case. |
237 const char kDisableHangMonitor[] = "disable-hang-monitor"; | 241 const char kDisableHangMonitor[] = "disable-hang-monitor"; |
238 | 242 |
239 // Disable the use of the HistoryQuickProvider for autocomplete results. | 243 // Disable the use of the HistoryQuickProvider for autocomplete results. |
240 const char kDisableHistoryQuickProvider[] = "disable-history-quick-provider"; | 244 const char kDisableHistoryQuickProvider[] = "disable-history-quick-provider"; |
241 | 245 |
242 // Disable the use of the HistoryURLProvider for autocomplete results. | 246 // Disable the use of the HistoryURLProvider for autocomplete results. |
243 const char kDisableHistoryURLProvider[] = "disable-history-url-provider"; | 247 const char kDisableHistoryURLProvider[] = "disable-history-url-provider"; |
244 | 248 |
245 // Disable the Indexed Database API. | 249 // Disable the Indexed Database API. |
246 const char kDisableIndexedDatabase[] = "disable-indexed-database"; | 250 const char kDisableIndexedDatabase[] = "disable-indexed-database"; |
247 | 251 |
248 // Disables HTML5 Forms interactive validation. | 252 // Disables HTML5 Forms interactive validation. |
249 const char kDisableInteractiveFormValidation[] = | 253 const char kDisableInteractiveFormValidation[] = |
250 "disable-interactive-form-validation"; | 254 "disable-interactive-form-validation"; |
251 | 255 |
252 // Disable the internal Flash Player. | 256 // Disable the internal Flash Player. |
253 const char kDisableInternalFlash[] = "disable-internal-flash"; | 257 const char kDisableInternalFlash[] = "disable-internal-flash"; |
254 | 258 |
255 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging | 259 // Don't resolve hostnames to IPv6 addresses. This can be used when debugging |
256 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to | 260 // issues relating to IPv6, but shouldn't otherwise be needed. Be sure to |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 // scripts. | 387 // scripts. |
384 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; | 388 const char kDumpHistogramsOnExit[] = "dump-histograms-on-exit"; |
385 | 389 |
386 // Enable displaying net log events on the command line. | 390 // Enable displaying net log events on the command line. |
387 extern const char kLogNetLog[] = "log-net-log"; | 391 extern const char kLogNetLog[] = "log-net-log"; |
388 | 392 |
389 // Enable gpu-accelerated 2d canvas. | 393 // Enable gpu-accelerated 2d canvas. |
390 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; | 394 const char kEnableAccelerated2dCanvas[] = "enable-accelerated-2d-canvas"; |
391 | 395 |
392 // Enables the hardware acceleration of plugins. | 396 // Enables the hardware acceleration of plugins. |
393 const char kEnableAcceleratedPlugins[] = "enable-accelerated-plugins"; | 397 const char kEnableAcceleratedPlugins[] = "enable-accelerated-plugins"; |
394 | 398 |
395 // Enables WebKit accessibility within the renderer process. | 399 // Enables WebKit accessibility within the renderer process. |
396 const char kEnableAccessibility[] = "enable-accessibility"; | 400 const char kEnableAccessibility[] = "enable-accessibility"; |
397 | 401 |
398 // Enables AeroPeek for each tab. (This switch only works on Windows 7). | 402 // Enables AeroPeek for each tab. (This switch only works on Windows 7). |
399 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; | 403 const char kEnableAeroPeekTabs[] = "enable-aero-peek-tabs"; |
400 | 404 |
401 // Enable the inclusion of non-standard ports when generating the Kerberos SPN | 405 // Enable the inclusion of non-standard ports when generating the Kerberos SPN |
402 // in response to a Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN | 406 // in response to a Negotiate challenge. See HttpAuthHandlerNegotiate::CreateSPN |
403 // for more background. | 407 // for more background. |
(...skipping 11 matching lines...) Expand all Loading... |
415 // we are confident that the false-positive rate is as low as expected we can | 419 // we are confident that the false-positive rate is as low as expected we can |
416 // remove this flag. | 420 // remove this flag. |
417 const char kEnableClientSidePhishingInterstitial[] = | 421 const char kEnableClientSidePhishingInterstitial[] = |
418 "enable-client-side-phishing-interstitial"; | 422 "enable-client-side-phishing-interstitial"; |
419 | 423 |
420 // This flag enables UI for clearing server data. Temporarily in place | 424 // This flag enables UI for clearing server data. Temporarily in place |
421 // until there's a server endpoint deployed. | 425 // until there's a server endpoint deployed. |
422 const char kEnableClearServerData[] = "enable-clear-server-data"; | 426 const char kEnableClearServerData[] = "enable-clear-server-data"; |
423 | 427 |
424 // Enable click-to-play for blocked plug-ins. | 428 // Enable click-to-play for blocked plug-ins. |
425 const char kEnableClickToPlay[] = "enable-click-to-play"; | 429 const char kEnableClickToPlay[] = "enable-click-to-play"; |
426 | 430 |
427 // This applies only when the process type is "service". Enables the | 431 // This applies only when the process type is "service". Enables the |
428 // Cloud Print Proxy component within the service process. | 432 // Cloud Print Proxy component within the service process. |
429 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; | 433 const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; |
430 | 434 |
431 // Enables the Cloud Print dialog hosting code. | 435 // Enables the Cloud Print dialog hosting code. |
432 const char kEnableCloudPrint[] = "enable-cloud-print"; | 436 const char kEnableCloudPrint[] = "enable-cloud-print"; |
433 | 437 |
434 // Enables compositing to texture instead of display. | 438 // Enables compositing to texture instead of display. |
435 const char kEnableCompositeToTexture[] = "enable-composite-to-texture"; | 439 const char kEnableCompositeToTexture[] = "enable-composite-to-texture"; |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 // The argument is a string-ized list of experiment names, and the associated | 624 // The argument is a string-ized list of experiment names, and the associated |
621 // value that was randomly selected. In the recent implementetaion, the | 625 // value that was randomly selected. In the recent implementetaion, the |
622 // persistent representation generated by field_trial.cc and later decoded, is a | 626 // persistent representation generated by field_trial.cc and later decoded, is a |
623 // list of name and value pairs, separated by slashes. See field trial.cc for | 627 // list of name and value pairs, separated by slashes. See field trial.cc for |
624 // current details. | 628 // current details. |
625 const char kForceFieldTestNameAndValue[] = "force-fieldtest"; | 629 const char kForceFieldTestNameAndValue[] = "force-fieldtest"; |
626 | 630 |
627 // Force renderer accessibility to be on instead of enabling it on demand when | 631 // Force renderer accessibility to be on instead of enabling it on demand when |
628 // a screen reader is detected. The disable-renderer-accessibility switch | 632 // a screen reader is detected. The disable-renderer-accessibility switch |
629 // overrides this if present. | 633 // overrides this if present. |
630 const char kForceRendererAccessibility[] = "force-renderer-accessibility"; | 634 const char kForceRendererAccessibility[] = "force-renderer-accessibility"; |
631 | 635 |
632 // Specifies a custom name for the GSSAPI library to load. | 636 // Specifies a custom name for the GSSAPI library to load. |
633 const char kGSSAPILibraryName[] = "gssapi-library-name"; | 637 const char kGSSAPILibraryName[] = "gssapi-library-name"; |
634 | 638 |
635 // These flags show the man page on Linux. They are equivalent to each | 639 // These flags show the man page on Linux. They are equivalent to each |
636 // other. | 640 // other. |
637 const char kHelp[] = "help"; | 641 const char kHelp[] = "help"; |
638 const char kHelpShort[] = "h"; | 642 const char kHelpShort[] = "h"; |
639 | 643 |
640 // Make Windows happy by allowing it to show "Enable access to this program" | 644 // Make Windows happy by allowing it to show "Enable access to this program" |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 // does not delete existing autorun registrations, it just prevents the service | 787 // does not delete existing autorun registrations, it just prevents the service |
784 // from registering a new one. | 788 // from registering a new one. |
785 const char kNoServiceAutorun[] = "no-service-autorun"; | 789 const char kNoServiceAutorun[] = "no-service-autorun"; |
786 | 790 |
787 // Does not automatically open a browser window on startup (used when launching | 791 // Does not automatically open a browser window on startup (used when launching |
788 // Chrome for the purpose of hosting background apps). | 792 // Chrome for the purpose of hosting background apps). |
789 const char kNoStartupWindow[] = "no-startup-window"; | 793 const char kNoStartupWindow[] = "no-startup-window"; |
790 | 794 |
791 // Show a desktop notification that the cloud print token has expired and | 795 // Show a desktop notification that the cloud print token has expired and |
792 // that user needs to re-authenticate. | 796 // that user needs to re-authenticate. |
793 const char kNotifyCloudPrintTokenExpired[] = "notify-cp-token-expired"; | 797 const char kNotifyCloudPrintTokenExpired[] = "notify-cp-token-expired"; |
794 | 798 |
795 // Specifies the maximum number of threads to use for running the Proxy | 799 // Specifies the maximum number of threads to use for running the Proxy |
796 // Autoconfig (PAC) script. | 800 // Autoconfig (PAC) script. |
797 const char kNumPacThreads[] = "num-pac-threads"; | 801 const char kNumPacThreads[] = "num-pac-threads"; |
798 | 802 |
799 // Launch URL in new browser window. | 803 // Launch URL in new browser window. |
800 const char kOpenInNewWindow[] = "new-window"; | 804 const char kOpenInNewWindow[] = "new-window"; |
801 | 805 |
802 // Simulate an organic Chrome install. | 806 // Simulate an organic Chrome install. |
803 const char kOrganicInstall[] = "organic"; | 807 const char kOrganicInstall[] = "organic"; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
994 // "host" or "host:port". | 998 // "host" or "host:port". |
995 const char kSyncNotificationHost[] = "sync-notification-host"; | 999 const char kSyncNotificationHost[] = "sync-notification-host"; |
996 | 1000 |
997 // Override the default server used for profile sync. | 1001 // Override the default server used for profile sync. |
998 const char kSyncServiceURL[] = "sync-url"; | 1002 const char kSyncServiceURL[] = "sync-url"; |
999 | 1003 |
1000 // Try to connect to XMPP using SSLTCP first (for testing). | 1004 // Try to connect to XMPP using SSLTCP first (for testing). |
1001 const char kSyncTrySsltcpFirstForXmpp[] = "sync-try-ssltcp-first-for-xmpp"; | 1005 const char kSyncTrySsltcpFirstForXmpp[] = "sync-try-ssltcp-first-for-xmpp"; |
1002 | 1006 |
1003 // Use new experimental SyncerThread implementation and friends. | 1007 // Use new experimental SyncerThread implementation and friends. |
1004 const char kNewSyncerThread[] = "new-syncer-thread"; | 1008 const char kNewSyncerThread[] = "new-syncer-thread"; |
1005 | 1009 |
1006 // Pass the name of the current running automated test to Chrome. | 1010 // Pass the name of the current running automated test to Chrome. |
1007 const char kTestName[] = "test-name"; | 1011 const char kTestName[] = "test-name"; |
1008 | 1012 |
1009 // Runs the security test for the NaCl loader sandbox. | 1013 // Runs the security test for the NaCl loader sandbox. |
1010 const char kTestNaClSandbox[] = "test-nacl-sandbox"; | 1014 const char kTestNaClSandbox[] = "test-nacl-sandbox"; |
1011 | 1015 |
1012 // Pass the type of the current test harness ("browser" or "ui") | 1016 // Pass the type of the current test harness ("browser" or "ui") |
1013 const char kTestType[] = "test-type"; | 1017 const char kTestType[] = "test-type"; |
1014 | 1018 |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1197 | 1201 |
1198 // ----------------------------------------------------------------------------- | 1202 // ----------------------------------------------------------------------------- |
1199 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1203 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1200 // | 1204 // |
1201 // You were going to just dump your switches here, weren't you? Instead, | 1205 // You were going to just dump your switches here, weren't you? Instead, |
1202 // please put them in alphabetical order above, or in order inside the | 1206 // please put them in alphabetical order above, or in order inside the |
1203 // appropriate ifdef at the bottom. The order should match the header. | 1207 // appropriate ifdef at the bottom. The order should match the header. |
1204 // ----------------------------------------------------------------------------- | 1208 // ----------------------------------------------------------------------------- |
1205 | 1209 |
1206 } // namespace switches | 1210 } // namespace switches |
OLD | NEW |