OLD | NEW |
---|---|
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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
11 #include "content/public/common/ssl_status.h" | |
11 #include "net/cert/cert_status_flags.h" | 12 #include "net/cert/cert_status_flags.h" |
13 #include "net/cert/sct_status_flags.h" | |
12 | 14 |
13 namespace content { | 15 namespace content { |
14 | 16 |
15 // Convenience methods for serializing/deserializing the security info. | 17 // Convenience methods for serializing/deserializing the security info. |
16 CONTENT_EXPORT std::string SerializeSecurityInfo(int cert_id, | 18 CONTENT_EXPORT std::string SerializeSecurityInfo( |
17 net::CertStatus cert_status, | 19 int cert_id, net::CertStatus cert_status, int security_bits, |
Eran M. (Google)
2013/11/26 21:33:22
Nit: each parameter in a line of its own.
alcutter
2013/11/26 23:00:05
Done.
| |
18 int security_bits, | 20 int connection_status, |
19 int connection_status); | 21 const SignedCertificateTimestampIDStatusList& |
22 signed_certificate_timestamp_ids); | |
20 | 23 |
21 bool DeserializeSecurityInfo(const std::string& state, | 24 bool DeserializeSecurityInfo(const std::string& state, |
22 int* cert_id, | 25 int* cert_id, |
23 net::CertStatus* cert_status, | 26 net::CertStatus* cert_status, |
24 int* security_bits, | 27 int* security_bits, |
25 int* connection_status); | 28 int* connection_status, |
29 SignedCertificateTimestampIDStatusList* | |
30 signed_certificate_timestamp_ids); | |
26 | 31 |
27 } // namespace content | 32 } // namespace content |
28 | 33 |
29 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ | 34 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ |
OLD | NEW |