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

Unified Diff: chrome/browser/ssl/chrome_ssl_host_state_delegate.h

Issue 2226523002: Add separate plumbing for subresources with certificate errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 4 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 8a01205cdb47cd450cf0f42cfc80a970d9f87eec..51da531a43ff5360376097a046b2af32663b8af1 100644
--- a/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
+++ b/chrome/browser/ssl/chrome_ssl_host_state_delegate.h
@@ -40,6 +40,10 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
void HostRanInsecureContent(const std::string& host, int pid) override;
bool DidHostRunInsecureContent(const std::string& host,
int pid) const override;
+ void HostRanContentWithCertificateErrors(const std::string& host,
+ int pid) override;
+ bool DidHostRunContentWithCertificateErrors(const std::string& host,
+ int pid) const override;
// Revokes all SSL certificate error allow exceptions made by the user for
// |host| in the given Profile.
@@ -110,11 +114,15 @@ class ChromeSSLHostStateDelegate : public content::SSLHostStateDelegate {
// contains insecure content in that renderer process.
typedef std::pair<std::string, int> BrokenHostEntry;
- // Hosts which have been contaminated with insecure content in the
+ // Hosts which have been contaminated with insecure (HTTP) 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_;
+ // Hosts which have been contaminated with content loaded with
+ // certificate errors in the specified process.
+ std::set<BrokenHostEntry> ran_content_with_certificate_errors_hosts_;
+
// This is a GUID to mark this unique session. Whenever a certificate decision
// expiration is set, the GUID is saved as well so Chrome can tell if it was
// last set during the current session. This is used by the
« no previous file with comments | « chrome/browser/ssl/chrome_security_state_model_client.cc ('k') | chrome/browser/ssl/chrome_ssl_host_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698