| 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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 748 | 748 |
| 749 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow | 749 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow |
| 750 // (not counting backup attempts which would also consume threads). | 750 // (not counting backup attempts which would also consume threads). |
| 751 // --host-resolver-retry-attempts must be set to zero for this to be exact. | 751 // --host-resolver-retry-attempts must be set to zero for this to be exact. |
| 752 const char kHostResolverParallelism[] = "host-resolver-parallelism"; | 752 const char kHostResolverParallelism[] = "host-resolver-parallelism"; |
| 753 | 753 |
| 754 // The maximum number of retry attempts to resolve the host. Set this to zero | 754 // The maximum number of retry attempts to resolve the host. Set this to zero |
| 755 // to disable host resolver retry attempts. | 755 // to disable host resolver retry attempts. |
| 756 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; | 756 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; |
| 757 | 757 |
| 758 // These mappings only apply to the host resolver. | |
| 759 const char kHostResolverRules[] = "host-resolver-rules"; | |
| 760 | |
| 761 // Takes the JSON-formatted HSTS specification and loads it as if it were a | 758 // Takes the JSON-formatted HSTS specification and loads it as if it were a |
| 762 // preloaded HSTS entry. Takes precedence over both website-specified rules and | 759 // preloaded HSTS entry. Takes precedence over both website-specified rules and |
| 763 // built-in rules. The JSON format is the same as that persisted in | 760 // built-in rules. The JSON format is the same as that persisted in |
| 764 // <profile_dir>/Default/TransportSecurity | 761 // <profile_dir>/Default/TransportSecurity |
| 765 const char kHstsHosts[] = "hsts-hosts"; | 762 const char kHstsHosts[] = "hsts-hosts"; |
| 766 | 763 |
| 767 // Performs importing from another browser. The value associated with this | 764 // Performs importing from another browser. The value associated with this |
| 768 // setting encodes the target browser and what items to import. | 765 // setting encodes the target browser and what items to import. |
| 769 const char kImport[] = "import"; | 766 const char kImport[] = "import"; |
| 770 | 767 |
| (...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1283 // Runs the security test for the NaCl loader sandbox. | 1280 // Runs the security test for the NaCl loader sandbox. |
| 1284 const char kTestNaClSandbox[] = "test-nacl-sandbox"; | 1281 const char kTestNaClSandbox[] = "test-nacl-sandbox"; |
| 1285 | 1282 |
| 1286 // Type of the current test harness ("browser" or "ui"). | 1283 // Type of the current test harness ("browser" or "ui"). |
| 1287 const char kTestType[] = "test-type"; | 1284 const char kTestType[] = "test-type"; |
| 1288 | 1285 |
| 1289 // Tells the app to listen for and broadcast testing-related messages on IPC | 1286 // Tells the app to listen for and broadcast testing-related messages on IPC |
| 1290 // channel with the given ID. | 1287 // channel with the given ID. |
| 1291 const char kTestingChannelID[] = "testing-channel"; | 1288 const char kTestingChannelID[] = "testing-channel"; |
| 1292 | 1289 |
| 1293 // Allows for forcing socket connections to http/https to use fixed ports. | |
| 1294 const char kTestingFixedHttpPort[] = "testing-fixed-http-port"; | |
| 1295 const char kTestingFixedHttpsPort[] = "testing-fixed-https-port"; | |
| 1296 | |
| 1297 // Disables same-origin check on HTTP resources pushed via a SPDY proxy. | 1290 // Disables same-origin check on HTTP resources pushed via a SPDY proxy. |
| 1298 // The value is the host:port of the trusted proxy. | 1291 // The value is the host:port of the trusted proxy. |
| 1299 const char kTrustedSpdyProxy[] = "trusted-spdy-proxy"; | 1292 const char kTrustedSpdyProxy[] = "trusted-spdy-proxy"; |
| 1300 | 1293 |
| 1301 // Experimental. Shows a dialog asking the user to try chrome. This flag is to | 1294 // Experimental. Shows a dialog asking the user to try chrome. This flag is to |
| 1302 // be used only by the upgrade process. | 1295 // be used only by the upgrade process. |
| 1303 const char kTryChromeAgain[] = "try-chrome-again"; | 1296 const char kTryChromeAgain[] = "try-chrome-again"; |
| 1304 | 1297 |
| 1305 // Runs un-installation steps that were done by chrome first-run. | 1298 // Runs un-installation steps that were done by chrome first-run. |
| 1306 const char kUninstall[] = "uninstall"; | 1299 const char kUninstall[] = "uninstall"; |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1576 | 1569 |
| 1577 // ----------------------------------------------------------------------------- | 1570 // ----------------------------------------------------------------------------- |
| 1578 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1571 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1579 // | 1572 // |
| 1580 // You were going to just dump your switches here, weren't you? Instead, please | 1573 // You were going to just dump your switches here, weren't you? Instead, please |
| 1581 // put them in alphabetical order above, or in order inside the appropriate | 1574 // put them in alphabetical order above, or in order inside the appropriate |
| 1582 // ifdef at the bottom. The order should match the header. | 1575 // ifdef at the bottom. The order should match the header. |
| 1583 // ----------------------------------------------------------------------------- | 1576 // ----------------------------------------------------------------------------- |
| 1584 | 1577 |
| 1585 } // namespace switches | 1578 } // namespace switches |
| OLD | NEW |