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

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: rebase fixup 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 c6a165ab3dfee65aba093bbc3118bf41b6030444..4cbcce4a64984b92ab198af099a6549dcd99b07f 100644
--- a/components/security_state/security_state_model.h
+++ b/components/security_state/security_state_model.h
@@ -96,6 +96,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;
@@ -147,6 +151,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