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

Unified Diff: content/public/browser/ssl_host_state_delegate.h

Issue 465133004: Remove DenyCertForHost from SSLHostStateDelegate API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on ToT Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.cc ('k') | net/cert/x509_cert_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/ssl_host_state_delegate.h
diff --git a/content/public/browser/ssl_host_state_delegate.h b/content/public/browser/ssl_host_state_delegate.h
index 9f564a194b1a42b8cb7d4f32bfb16c06cfc8514c..4666471a14860c766395507fe52ac05b86d5778a 100644
--- a/content/public/browser/ssl_host_state_delegate.h
+++ b/content/public/browser/ssl_host_state_delegate.h
@@ -24,11 +24,11 @@ namespace content {
// default strategy of not remembering decisions at all.
class SSLHostStateDelegate {
public:
- // Records that |cert| is not permitted to be used for |host| in the future,
- // for a specified |error| type.
- virtual void DenyCert(const std::string& host,
- const net::X509Certificate& cert,
- net::CertStatus error) = 0;
+ // The judgements that can be reached by a user for invalid certificates.
+ enum CertJudgment {
+ DENIED,
+ ALLOWED
+ };
// Records that |cert| is permitted to be used for |host| in the future, for
// a specified |error| type.
@@ -36,17 +36,16 @@ class SSLHostStateDelegate {
const net::X509Certificate& cert,
net::CertStatus error) = 0;
- // Clear all allow/deny preferences.
+ // Clear all allow preferences.
virtual void Clear() = 0;
- // Queries whether |cert| is allowed or denied for |host| and |error|. Returns
- // true in |expired_previous_decision| if a previous user decision expired
- // immediately prior to this query, otherwise false.
- virtual net::CertPolicy::Judgment QueryPolicy(
- const std::string& host,
- const net::X509Certificate& cert,
- net::CertStatus error,
- bool* expired_previous_decision) = 0;
+ // Queries whether |cert| is allowed for |host| and |error|. Returns true in
+ // |expired_previous_decision| if a previous user decision expired immediately
+ // prior to this query, otherwise false.
+ virtual CertJudgment QueryPolicy(const std::string& host,
+ const net::X509Certificate& cert,
+ net::CertStatus error,
+ bool* expired_previous_decision) = 0;
// Records that a host has run insecure content.
virtual void HostRanInsecureContent(const std::string& host, int pid) = 0;
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.cc ('k') | net/cert/x509_cert_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698