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..535cbac6482be8b1573fed4461de4ce66eee7280 100644 |
--- a/chrome/browser/ssl/chrome_ssl_host_state_delegate.h |
+++ b/chrome/browser/ssl/chrome_ssl_host_state_delegate.h |
@@ -41,6 +41,11 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate { |
virtual void RevokeAllowAndDenyPreferences(const std::string& host) OVERRIDE; |
virtual bool HasAllowedOrDeniedCert(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 +105,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); |
}; |