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

Unified Diff: content/common/ssl_status_serialization.h

Issue 1259253009: Revert of Attach a SecurityStyle to each request in ResourceLoader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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.cc ('k') | content/common/ssl_status_serialization.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/ssl_status_serialization.h
diff --git a/content/common/ssl_status_serialization.h b/content/common/ssl_status_serialization.h
index ed4062377a5de0ed95e8906d4e6247e7d6ca3f1e..08819d336277969f85daae266919e0871597d02f 100644
--- a/content/common/ssl_status_serialization.h
+++ b/content/common/ssl_status_serialization.h
@@ -13,17 +13,20 @@
namespace content {
-// Serializes the given security info. Does NOT include
-// |ssl_status.content_status| in the serialized info.
-CONTENT_EXPORT std::string SerializeSecurityInfo(const SSLStatus& ssl_status);
+// Serializes the given security info.
+CONTENT_EXPORT std::string SerializeSecurityInfo(
+ int cert_id,
+ net::CertStatus cert_status,
+ int security_bits,
+ int connection_status,
+ const SignedCertificateTimestampIDStatusList&
+ signed_certificate_timestamp_ids);
// Deserializes the given security info into |ssl_status|. Note that
-// this returns the |content_status| field with its default
-// value. Returns true on success and false if the state couldn't be
-// deserialized. If false, all fields in |ssl_status| will be set to
-// their default values. Note that this function does not validate that
-// the deserialized SSLStatus is internally consistent (e.g. that the
-// |security_style| matches up with the rest of the fields).
+// this returns the SecurityStyle and ContentStatus fields with default
+// values. Returns true on success and false if the state couldn't be
+// deserialized. If false, all fields in |ssl_status| will be set to their
+// default values.
bool CONTENT_EXPORT
DeserializeSecurityInfo(const std::string& state,
SSLStatus* ssl_status) WARN_UNUSED_RESULT;
« no previous file with comments | « content/browser/ssl/ssl_policy.cc ('k') | content/common/ssl_status_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698