Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Side by Side Diff: content/public/common/content_switches.cc

Issue 2753123002: Add --ignore-certificate-errors-spki-list switch and UMA histogram. (Closed)
Patch Set: Really add IgnoreErrorsCertVerifier. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "build/build_config.h" 5 #include "build/build_config.h"
6 #include "content/public/common/content_switches.h" 6 #include "content/public/common/content_switches.h"
7 #include "media/media_features.h" 7 #include "media/media_features.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 576
577 // Makes GPU sandbox failures fatal. 577 // Makes GPU sandbox failures fatal.
578 const char kGpuSandboxFailuresFatal[] = "gpu-sandbox-failures-fatal"; 578 const char kGpuSandboxFailuresFatal[] = "gpu-sandbox-failures-fatal";
579 579
580 // Causes the GPU process to display a dialog on launch. 580 // Causes the GPU process to display a dialog on launch.
581 const char kGpuStartupDialog[] = "gpu-startup-dialog"; 581 const char kGpuStartupDialog[] = "gpu-startup-dialog";
582 582
583 // Ignores certificate-related errors. 583 // Ignores certificate-related errors.
584 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors"; 584 const char kIgnoreCertificateErrors[] = "ignore-certificate-errors";
585 585
586 // A set of public key hashes for which to ignore certificate-related errors.
587 // If the certificate chain presented by the server does not validate, and one
588 // or more certificates have public key hashes that match a key from this list,
589 // the error is ignored.
590 //
591 // The switch value must a be a comma-separated list of Base64-encoded SHA-256
592 // SPKI Fingerprints (RFC 7469, Section 2.4).
593 const char kIgnoreCertificateErrorsSPKIList[] =
594 "ignore-certificate-errors-spki-list";
595
586 // Don't allow content to arbitrarily append to the back/forward list. 596 // Don't allow content to arbitrarily append to the back/forward list.
587 // The page must prcoess a user gesture before an entry can be added. 597 // The page must prcoess a user gesture before an entry can be added.
588 const char kHistoryEntryRequiresUserGesture[] = 598 const char kHistoryEntryRequiresUserGesture[] =
589 "history-entry-requires-user-gesture"; 599 "history-entry-requires-user-gesture";
590 600
591 // These mappings only apply to the host resolver. 601 // These mappings only apply to the host resolver.
592 const char kHostResolverRules[] = "host-resolver-rules"; 602 const char kHostResolverRules[] = "host-resolver-rules";
593 603
594 // Makes all APIs reflect the layout viewport. 604 // Makes all APIs reflect the layout viewport.
595 const char kInertVisualViewport[] = "inert-visual-viewport"; 605 const char kInertVisualViewport[] = "inert-visual-viewport";
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 // the given directory. Used primarily to gather samples for IPC fuzzing. 1093 // the given directory. Used primarily to gather samples for IPC fuzzing.
1084 const char kIpcDumpDirectory[] = "ipc-dump-directory"; 1094 const char kIpcDumpDirectory[] = "ipc-dump-directory";
1085 1095
1086 // Specifies the testcase used by the IPC fuzzer. 1096 // Specifies the testcase used by the IPC fuzzer.
1087 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase"; 1097 const char kIpcFuzzerTestcase[] = "ipc-fuzzer-testcase";
1088 #endif 1098 #endif
1089 1099
1090 // Don't dump stuff here, follow the same order as the header. 1100 // Don't dump stuff here, follow the same order as the header.
1091 1101
1092 } // namespace switches 1102 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698