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

Unified Diff: content/browser/ssl/ssl_host_state.h

Issue 418133012: Add button to page info to revoke user certificate decisions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
Index: content/browser/ssl/ssl_host_state.h
diff --git a/content/browser/ssl/ssl_host_state.h b/content/browser/ssl/ssl_host_state.h
index 820821786d31180066f21fdfb900f1b7dd9a7fbd..e87640acffa070d8529b8054e8806508d2ce4595 100644
--- a/content/browser/ssl/ssl_host_state.h
+++ b/content/browser/ssl/ssl_host_state.h
@@ -58,6 +58,12 @@ class CONTENT_EXPORT SSLHostState
// Clear all allow/deny preferences.
void Clear();
+ // Revoke all allow/deny preferences for a given host. May close idle
+ // HTTP/HTTPS connections in the process.
+ void RevokeAllowAndDenyPreferences(const std::string& host);
+
+ bool HasAllowedOrDeniedCert(const std::string& host);
+
// Queries whether |cert| is allowed or denied for |host| and |error|.
net::CertPolicy::Judgment QueryPolicy(net::X509Certificate* cert,
const std::string& host,
@@ -76,6 +82,9 @@ class CONTENT_EXPORT SSLHostState
// Certificate policies for each host.
std::map<std::string, net::CertPolicy> cert_policy_for_host_;
+ // BrowserContext that the state was created on.
+ BrowserContext* browser_context_;
+
DISALLOW_COPY_AND_ASSIGN(SSLHostState);
};

Powered by Google App Engine
This is Rietveld 408576698