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

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

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
« 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 a2626dac383d052c985b20d5d7fe6083907ba962..0c23ae02c6fb13904ee1e3191c6096b9da38c7a3 100644
--- a/content/browser/ssl/ssl_policy_backend.cc
+++ b/content/browser/ssl/ssl_policy_backend.cc
@@ -31,6 +31,24 @@ bool SSLPolicyBackend::DidHostRunInsecureContent(const std::string& host,
return ssl_host_state_delegate_->DidHostRunInsecureContent(host, pid);
}
+void SSLPolicyBackend::HostRanContentWithCertificateErrors(
+ const std::string& host,
+ int id) {
+ if (ssl_host_state_delegate_)
+ ssl_host_state_delegate_->HostRanContentWithCertificateErrors(host, id);
+ SSLManager::NotifySSLInternalStateChanged(controller_->GetBrowserContext());
+}
+
+bool SSLPolicyBackend::DidHostRunContentWithCertificateErrors(
+ const std::string& host,
+ int pid) const {
+ if (!ssl_host_state_delegate_)
+ return false;
+
+ return ssl_host_state_delegate_->DidHostRunContentWithCertificateErrors(host,
+ pid);
+}
+
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