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