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

Unified Diff: content/browser/ssl/ssl_policy_backend.cc

Issue 2226363002: Track subresources with cert errors separately from mixed content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comments 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
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/ssl/ssl_policy_backend.cc
diff --git a/content/browser/ssl/ssl_policy_backend.cc b/content/browser/ssl/ssl_policy_backend.cc
index a31e2b16e06e7f7ff64bd100037c88c5b685cce2..34fa2e4b7c515896d5aa1e89032edf743e7a5c67 100644
--- a/content/browser/ssl/ssl_policy_backend.cc
+++ b/content/browser/ssl/ssl_policy_backend.cc
@@ -33,6 +33,23 @@ bool SSLPolicyBackend::DidHostRunInsecureContent(const std::string& host,
host, pid, SSLHostStateDelegate::MIXED_CONTENT);
}
+void SSLPolicyBackend::HostRanContentWithCertErrors(const std::string& host,
+ int id) {
+ if (ssl_host_state_delegate_)
+ ssl_host_state_delegate_->HostRanInsecureContent(
+ host, id, SSLHostStateDelegate::CERT_ERRORS_CONTENT);
+ SSLManager::NotifySSLInternalStateChanged(controller_->GetBrowserContext());
+}
+
+bool SSLPolicyBackend::DidHostRunContentWithCertErrors(const std::string& host,
+ int pid) const {
+ if (!ssl_host_state_delegate_)
+ return false;
+
+ return ssl_host_state_delegate_->DidHostRunInsecureContent(
+ host, pid, SSLHostStateDelegate::CERT_ERRORS_CONTENT);
+}
+
void SSLPolicyBackend::RevokeUserAllowExceptions(const std::string& host) {
if (!ssl_host_state_delegate_)
return;
« no previous file with comments | « content/browser/ssl/ssl_policy_backend.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698