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

Side by Side Diff: content/common/ssl_status_serialization.h

Issue 1244863003: Attach a SecurityStyle to each request in ResourceLoader (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update forgotten SerializeSecurityInfo() callsite 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ 5 #ifndef CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
6 #define CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ 6 #define CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/public/common/ssl_status.h" 12 #include "content/public/common/ssl_status.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 // Serializes the given security info. 16 // Serializes the given security info.
17 CONTENT_EXPORT std::string SerializeSecurityInfo( 17 CONTENT_EXPORT std::string SerializeSecurityInfo(
davidben 2015/07/22 20:56:58 Why not just take an SSLStatus as input?
estark 2015/07/22 22:56:55 Done.
18 SecurityStyle security_style,
18 int cert_id, 19 int cert_id,
19 net::CertStatus cert_status, 20 net::CertStatus cert_status,
20 int security_bits, 21 int security_bits,
21 int connection_status, 22 int connection_status,
22 const SignedCertificateTimestampIDStatusList& 23 const SignedCertificateTimestampIDStatusList&
23 signed_certificate_timestamp_ids); 24 signed_certificate_timestamp_ids);
24 25
25 // Deserializes the given security info into |ssl_status|. Note that 26 // Deserializes the given security info into |ssl_status|. Note that
26 // this returns the SecurityStyle and ContentStatus fields with default 27 // this returns the |content_status| field with its default
27 // values. Returns true on success and false if the state couldn't be 28 // value. Returns true on success and false if the state couldn't be
28 // deserialized. If false, all fields in |ssl_status| will be set to their 29 // deserialized. If false, all fields in |ssl_status| will be set to their
29 // default values. 30 // default values.
30 bool CONTENT_EXPORT 31 bool CONTENT_EXPORT
31 DeserializeSecurityInfo(const std::string& state, 32 DeserializeSecurityInfo(const std::string& state,
32 SSLStatus* ssl_status) WARN_UNUSED_RESULT; 33 SSLStatus* ssl_status) WARN_UNUSED_RESULT;
33 34
34 } // namespace content 35 } // namespace content
35 36
36 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ 37 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698