| 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 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 | 9 |
| 10 namespace switches { | 10 namespace switches { |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 // Will also force the port of the resulting | 594 // Will also force the port of the resulting |
| 595 // socket address to be 77. | 595 // socket address to be 77. |
| 596 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz", | 596 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz", |
| 597 // except for "www.google.com". | 597 // except for "www.google.com". |
| 598 // | 598 // |
| 599 // These mappings apply to the endpoint host in a net::URLRequest (the TCP | 599 // These mappings apply to the endpoint host in a net::URLRequest (the TCP |
| 600 // connect and host resolver in a direct connection, and the CONNECT in an http | 600 // connect and host resolver in a direct connection, and the CONNECT in an http |
| 601 // proxy connection, and the endpoint host in a SOCKS proxy connection). | 601 // proxy connection, and the endpoint host in a SOCKS proxy connection). |
| 602 const char kHostRules[] = "host-rules"; | 602 const char kHostRules[] = "host-rules"; |
| 603 | 603 |
| 604 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow. | 604 // The maximum number of concurrent host resolve requests (i.e. DNS) to allow |
| 605 // (not counting backup attempts which would also consume threads). |
| 606 // --host-resolver-retry-attempts must be set to zero for this to be exact. |
| 605 const char kHostResolverParallelism[] = "host-resolver-parallelism"; | 607 const char kHostResolverParallelism[] = "host-resolver-parallelism"; |
| 606 | 608 |
| 609 // The maximum number of retry attempts to resolve the host. Set this to zero |
| 610 // to disable host resolver retry attempts. |
| 611 const char kHostResolverRetryAttempts[] = "host-resolver-retry-attempts"; |
| 612 |
| 607 // These mappings only apply to the host resolver. | 613 // These mappings only apply to the host resolver. |
| 608 const char kHostResolverRules[] = "host-resolver-rules"; | 614 const char kHostResolverRules[] = "host-resolver-rules"; |
| 609 | 615 |
| 610 // This switch will take the JSON-formatted HSTS specification and load it | 616 // This switch will take the JSON-formatted HSTS specification and load it |
| 611 // as if it were a preloaded HSTS entry. It will take precedence over both | 617 // as if it were a preloaded HSTS entry. It will take precedence over both |
| 612 // website-specified rules and built-in rules. | 618 // website-specified rules and built-in rules. |
| 613 // The JSON format is the same as that persisted in | 619 // The JSON format is the same as that persisted in |
| 614 // <profile_dir>/Default/TransportSecurity | 620 // <profile_dir>/Default/TransportSecurity |
| 615 const char kHstsHosts[] = "hsts-hosts"; | 621 const char kHstsHosts[] = "hsts-hosts"; |
| 616 | 622 |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1173 | 1179 |
| 1174 // ----------------------------------------------------------------------------- | 1180 // ----------------------------------------------------------------------------- |
| 1175 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1181 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
| 1176 // | 1182 // |
| 1177 // You were going to just dump your switches here, weren't you? Instead, | 1183 // You were going to just dump your switches here, weren't you? Instead, |
| 1178 // please put them in alphabetical order above, or in order inside the | 1184 // please put them in alphabetical order above, or in order inside the |
| 1179 // appropriate ifdef at the bottom. The order should match the header. | 1185 // appropriate ifdef at the bottom. The order should match the header. |
| 1180 // ----------------------------------------------------------------------------- | 1186 // ----------------------------------------------------------------------------- |
| 1181 | 1187 |
| 1182 } // namespace switches | 1188 } // namespace switches |
| OLD | NEW |