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

Unified Diff: content/public/common/ssl_status.h

Issue 71633002: Convert SignedCertificateClass to be ref_counted, and add an SCTStore in which to store them. Add S… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: few lint fixes Created 7 years, 1 month 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/public/browser/sct_store.h ('k') | content/public/common/ssl_status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/common/ssl_status.h
diff --git a/content/public/common/ssl_status.h b/content/public/common/ssl_status.h
index 831905162cff32162f7bcbbac12449b8d1f4d509..8ac5d00453c820f8b950bf08f232bb55f8af2c06 100644
--- a/content/public/common/ssl_status.h
+++ b/content/public/common/ssl_status.h
@@ -5,12 +5,18 @@
#ifndef CONTENT_PUBLIC_COMMON_SSL_STATUS_H_
#define CONTENT_PUBLIC_COMMON_SSL_STATUS_H_
+#include <vector>
+
#include "content/common/content_export.h"
#include "content/public/common/security_style.h"
#include "net/cert/cert_status_flags.h"
+#include "net/cert/sct_status_flags.h"
namespace content {
+typedef std::vector<std::pair<int,
+ net::SignedCertificateTimestampVerificationStatus> > SCTIdStatusList;
+
// Collects the SSL information for this NavigationEntry.
struct CONTENT_EXPORT SSLStatus {
// Flags used for the page security content status.
@@ -29,6 +35,7 @@ struct CONTENT_EXPORT SSLStatus {
};
SSLStatus();
+ ~SSLStatus();
bool Equals(const SSLStatus& status) const {
return security_style == status.security_style &&
@@ -36,8 +43,8 @@ struct CONTENT_EXPORT SSLStatus {
cert_status == status.cert_status &&
security_bits == status.security_bits &&
content_status == status.content_status &&
- signed_certificate_timestamp_id ==
- status.signed_certificate_timestamp_id;
+ signed_certificate_timestamp_ids ==
+ status.signed_certificate_timestamp_ids;
}
content::SecurityStyle security_style;
@@ -47,7 +54,7 @@ struct CONTENT_EXPORT SSLStatus {
int connection_status;
// A combination of the ContentStatusFlags above.
int content_status;
- int signed_certificate_timestamp_id;
+ SCTIdStatusList signed_certificate_timestamp_ids;
};
} // namespace content
« no previous file with comments | « content/public/browser/sct_store.h ('k') | content/public/common/ssl_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698