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

Unified Diff: chrome/browser/ssl/chrome_ssl_host_state_delegate.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: Rebase on ToT Created 6 years, 4 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: chrome/browser/ssl/chrome_ssl_host_state_delegate.h
diff --git a/chrome/browser/ssl/chrome_ssl_host_state_delegate.h b/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
index 37c32ee729cf58bb2614253467437721ee16e4d7..f04a3de5d78e503bd2d7f16f6a935b4c87dda55a 100644
--- a/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
+++ b/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
@@ -38,8 +38,14 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
virtual net::CertPolicy::Judgment QueryPolicy(const std::string& host,
net::X509Certificate* cert,
net::CertStatus error) OVERRIDE;
- virtual void RevokeAllowAndDenyPreferences(const std::string& host) OVERRIDE;
- virtual bool HasAllowedOrDeniedCert(const std::string& host) OVERRIDE;
+ virtual void RevokeUserDecisions(const std::string& host) OVERRIDE;
+ virtual void RevokeUserDecisionsHard(const std::string& host) OVERRIDE;
+ virtual bool HasUserDecision(const std::string& host) OVERRIDE;
+
+ virtual void HostRanInsecureContent(const std::string& host,
+ int pid) OVERRIDE;
+ virtual bool DidHostRunInsecureContent(const std::string& host,
+ int pid) const OVERRIDE;
// Called on the UI thread when the profile is about to be destroyed.
void ShutdownOnUIThread() {}
@@ -100,6 +106,15 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
base::TimeDelta default_ssl_cert_decision_expiration_delta_;
Profile* profile_;
+ // A BrokenHostEntry is a pair of (host, process_id) that indicates the host
+ // contains insecure content in that renderer process.
+ typedef std::pair<std::string, int> BrokenHostEntry;
+
+ // Hosts which have been contaminated with insecure content in the
+ // specified process. Note that insecure content can travel between
+ // same-origin frames in one processs but cannot jump between processes.
+ std::set<BrokenHostEntry> ran_insecure_content_hosts_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeSSLHostStateDelegate);
};

Powered by Google App Engine
This is Rietveld 408576698