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

Unified Diff: components/security_state/security_state_model.h

Issue 2224023003: Teach SecurityStateModel about subresources with cert errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: components/security_state/security_state_model.h
diff --git a/components/security_state/security_state_model.h b/components/security_state/security_state_model.h
index 5852e21af7d4fd5dd42c20fb13d189ba927007f2..a53fef28194c838d0d18f9516186c47048822869 100644
--- a/components/security_state/security_state_model.h
+++ b/components/security_state/security_state_model.h
@@ -91,6 +91,10 @@ class SecurityStateModel {
// |mixed_content_status| describes the presence of content that was
// |loaded over a nonsecure (HTTP) connection.
ContentStatus mixed_content_status;
+ // |content_with_cert_errors_status| describes the presence of
+ // |content that was loaded over an HTTPS connection with
+ // |certificate errors.
+ ContentStatus content_with_cert_errors_status;
// The verification statuses of the signed certificate timestamps
// for the connection.
std::vector<net::ct::SCTVerifyStatus> sct_verify_statuses;
@@ -138,6 +142,10 @@ class SecurityStateModel {
bool displayed_mixed_content;
// True if the page ran active mixed content.
bool ran_mixed_content;
+ // True if the page displayed passive subresources with certificate errors.
+ bool displayed_content_with_cert_errors;
+ // True if the page ran active subresources with certificate errors.
+ bool ran_content_with_cert_errors;
// True if PKP was bypassed due to a local trust anchor.
bool pkp_bypassed;
};

Powered by Google App Engine
This is Rietveld 408576698