| 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 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 const char kEnableShowModalDialog[] = "enable-show-modal-dialog"; | 583 const char kEnableShowModalDialog[] = "enable-show-modal-dialog"; |
| 584 | 584 |
| 585 // Enable or disable settings in a separate browser window per profile | 585 // Enable or disable settings in a separate browser window per profile |
| 586 // (see SettingsWindowEnabled() below). | 586 // (see SettingsWindowEnabled() below). |
| 587 const char kEnableSettingsWindow[] = "enable-settings-window"; | 587 const char kEnableSettingsWindow[] = "enable-settings-window"; |
| 588 const char kDisableSettingsWindow[] = "disable-settings-window"; | 588 const char kDisableSettingsWindow[] = "disable-settings-window"; |
| 589 | 589 |
| 590 // Enable SPDY/4, aka HTTP/2. This is a temporary testing flag. | 590 // Enable SPDY/4, aka HTTP/2. This is a temporary testing flag. |
| 591 const char kEnableSpdy4[] = "enable-spdy4"; | 591 const char kEnableSpdy4[] = "enable-spdy4"; |
| 592 | 592 |
| 593 // Enables auto correction for misspelled words. | |
| 594 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct"; | |
| 595 | |
| 596 // Enables participation in the field trial for user feedback to spelling | |
| 597 // service. | |
| 598 const char kEnableSpellingFeedbackFieldTrial[] = | |
| 599 "enable-spelling-feedback-field-trial"; | |
| 600 | |
| 601 // Enables a feature that holds back some SSLConnectJobs in order to | 593 // Enables a feature that holds back some SSLConnectJobs in order to |
| 602 // minimize the number of full SSL handshakes completed. | 594 // minimize the number of full SSL handshakes completed. |
| 603 const char kEnableSSLConnectJobWaiting[] = "enable-ssl-connect-job-waiting"; | 595 const char kEnableSSLConnectJobWaiting[] = "enable-ssl-connect-job-waiting"; |
| 604 | 596 |
| 605 // Enables implementation of the Cache-Control: stale-while-revalidate directive | 597 // Enables implementation of the Cache-Control: stale-while-revalidate directive |
| 606 // which permits servers to allow the use of stale resources while revalidation | 598 // which permits servers to allow the use of stale resources while revalidation |
| 607 // proceeds in the background. | 599 // proceeds in the background. |
| 608 const char kEnableStaleWhileRevalidate[] = "enable-stale-while-revalidate"; | 600 const char kEnableStaleWhileRevalidate[] = "enable-stale-while-revalidate"; |
| 609 | 601 |
| 610 // Enables an experimental hosted app experience. | 602 // Enables an experimental hosted app experience. |
| (...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1104 // Speculative resource prefetching is disabled. | 1096 // Speculative resource prefetching is disabled. |
| 1105 const char kSpeculativeResourcePrefetchingDisabled[] = "disabled"; | 1097 const char kSpeculativeResourcePrefetchingDisabled[] = "disabled"; |
| 1106 | 1098 |
| 1107 // Speculative resource prefetching will only learn about resources that need to | 1099 // Speculative resource prefetching will only learn about resources that need to |
| 1108 // be prefetched but will not prefetch them. | 1100 // be prefetched but will not prefetch them. |
| 1109 const char kSpeculativeResourcePrefetchingLearning[] = "learning"; | 1101 const char kSpeculativeResourcePrefetchingLearning[] = "learning"; |
| 1110 | 1102 |
| 1111 // Speculative resource prefetching is enabled. | 1103 // Speculative resource prefetching is enabled. |
| 1112 const char kSpeculativeResourcePrefetchingEnabled[] = "enabled"; | 1104 const char kSpeculativeResourcePrefetchingEnabled[] = "enabled"; |
| 1113 | 1105 |
| 1106 #if defined(ENABLE_SPELLCHECK) |
| 1107 // Enables auto correction for misspelled words. |
| 1108 const char kEnableSpellingAutoCorrect[] = "enable-spelling-auto-correct"; |
| 1109 |
| 1110 // Enables participation in the field trial for user feedback to spelling |
| 1111 // service. |
| 1112 const char kEnableSpellingFeedbackFieldTrial[] = |
| 1113 "enable-spelling-feedback-field-trial"; |
| 1114 |
| 1114 // Specifies the URL where spelling service feedback data will be sent instead | 1115 // Specifies the URL where spelling service feedback data will be sent instead |
| 1115 // of the default URL. This switch is for temporary testing only. | 1116 // of the default URL. This switch is for temporary testing only. |
| 1116 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by | 1117 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by |
| 1117 // August 2013. | 1118 // August 2013. |
| 1118 const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url"; | 1119 const char kSpellingServiceFeedbackUrl[] = "spelling-service-feedback-url"; |
| 1119 | 1120 |
| 1120 // Specifies the number of seconds between sending batches of feedback to | 1121 // Specifies the number of seconds between sending batches of feedback to |
| 1121 // spelling service. The default is 30 minutes. The minimum is 5 seconds. This | 1122 // spelling service. The default is 30 minutes. The minimum is 5 seconds. This |
| 1122 // switch is for temporary testing only. | 1123 // switch is for temporary testing only. |
| 1123 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by | 1124 // TODO(rouslan): Remove this flag when feedback testing is complete. Revisit by |
| 1124 // August 2013. | 1125 // August 2013. |
| 1125 const char kSpellingServiceFeedbackIntervalSeconds[] = | 1126 const char kSpellingServiceFeedbackIntervalSeconds[] = |
| 1126 "spelling-service-feedback-interval-seconds"; | 1127 "spelling-service-feedback-interval-seconds"; |
| 1128 #endif |
| 1127 | 1129 |
| 1128 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or | 1130 // Specifies the maximum SSL/TLS version ("ssl3", "tls1", "tls1.1", or |
| 1129 // "tls1.2"). | 1131 // "tls1.2"). |
| 1130 const char kSSLVersionMax[] = "ssl-version-max"; | 1132 const char kSSLVersionMax[] = "ssl-version-max"; |
| 1131 | 1133 |
| 1132 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or | 1134 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or |
| 1133 // "tls1.2"). | 1135 // "tls1.2"). |
| 1134 const char kSSLVersionMin[] = "ssl-version-min"; | 1136 const char kSSLVersionMin[] = "ssl-version-min"; |
| 1135 | 1137 |
| 1136 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or | 1138 // Specifies the minimum SSL/TLS version ("ssl3", "tls1", "tls1.1", or |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1377 | 1379 |
| 1378 // ----------------------------------------------------------------------------- | 1380 // ----------------------------------------------------------------------------- |
| 1379 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1381 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1380 // | 1382 // |
| 1381 // You were going to just dump your switches here, weren't you? Instead, please | 1383 // You were going to just dump your switches here, weren't you? Instead, please |
| 1382 // put them in alphabetical order above, or in order inside the appropriate | 1384 // put them in alphabetical order above, or in order inside the appropriate |
| 1383 // ifdef at the bottom. The order should match the header. | 1385 // ifdef at the bottom. The order should match the header. |
| 1384 // ----------------------------------------------------------------------------- | 1386 // ----------------------------------------------------------------------------- |
| 1385 | 1387 |
| 1386 } // namespace switches | 1388 } // namespace switches |
| OLD | NEW |