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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // Will also force the port of the resulting | 518 // Will also force the port of the resulting |
519 // socket address to be 77. | 519 // socket address to be 77. |
520 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz", | 520 // "MAP * baz, EXCLUDE www.google.com" --> Remaps everything to "baz", |
521 // except for "www.google.com". | 521 // except for "www.google.com". |
522 // | 522 // |
523 // These mappings apply to the endpoint host in a net::URLRequest (the TCP | 523 // These mappings apply to the endpoint host in a net::URLRequest (the TCP |
524 // connect and host resolver in a direct connection, and the CONNECT in an http | 524 // connect and host resolver in a direct connection, and the CONNECT in an http |
525 // proxy connection, and the endpoint host in a SOCKS proxy connection). | 525 // proxy connection, and the endpoint host in a SOCKS proxy connection). |
526 const char kHostRules[] = "host-rules"; | 526 const char kHostRules[] = "host-rules"; |
527 | 527 |
| 528 // A set of public key hashes for which to ignore certificate-related errors. |
| 529 // |
| 530 // If the certificate chain presented by the server does not validate, and one |
| 531 // or more certificates have public key hashes that match a key from this list, |
| 532 // the error is ignored. |
| 533 // |
| 534 // The switch value must a be a comma-separated list of Base64-encoded SHA-256 |
| 535 // SPKI Fingerprints (RFC 7469, Section 2.4). |
| 536 // |
| 537 // This switch has no effect unless --user-data-dir is also present. |
| 538 const char kIgnoreCertificateErrorsSPKIList[] = |
| 539 "ignore-certificate-errors-spki-list"; |
| 540 |
528 // Causes net::URLFetchers to ignore requests for SSL client certificates, | 541 // Causes net::URLFetchers to ignore requests for SSL client certificates, |
529 // causing them to attempt an unauthenticated SSL/TLS session. This is intended | 542 // causing them to attempt an unauthenticated SSL/TLS session. This is intended |
530 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix, | 543 // for use when testing various service URLs (eg: kPromoServerURL, kSbURLPrefix, |
531 // kSyncServiceURL, etc). | 544 // kSyncServiceURL, etc). |
532 const char kIgnoreUrlFetcherCertRequests[] = "ignore-urlfetcher-cert-requests"; | 545 const char kIgnoreUrlFetcherCertRequests[] = "ignore-urlfetcher-cert-requests"; |
533 | 546 |
534 // Causes the browser to launch directly in incognito mode. | 547 // Causes the browser to launch directly in incognito mode. |
535 const char kIncognito[] = "incognito"; | 548 const char kIncognito[] = "incognito"; |
536 | 549 |
537 // Causes Chrome to initiate an installation flow for the given app. | 550 // Causes Chrome to initiate an installation flow for the given app. |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1177 | 1190 |
1178 // ----------------------------------------------------------------------------- | 1191 // ----------------------------------------------------------------------------- |
1179 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. | 1192 // DO NOT ADD YOUR VERY NICE FLAGS TO THE BOTTOM OF THIS FILE. |
1180 // | 1193 // |
1181 // You were going to just dump your switches here, weren't you? Instead, please | 1194 // You were going to just dump your switches here, weren't you? Instead, please |
1182 // put them in alphabetical order above, or in order inside the appropriate | 1195 // put them in alphabetical order above, or in order inside the appropriate |
1183 // ifdef at the bottom. The order should match the header. | 1196 // ifdef at the bottom. The order should match the header. |
1184 // ----------------------------------------------------------------------------- | 1197 // ----------------------------------------------------------------------------- |
1185 | 1198 |
1186 } // namespace switches | 1199 } // namespace switches |
OLD | NEW |