[email protected] | 35be7ec | 2012-02-12 20:42:51 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
5 | #ifndef CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ | ||||
6 | #define CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ | ||||
[email protected] | 35be7ec | 2012-02-12 20:42:51 | [diff] [blame] | 7 | |
8 | #include <string> | ||||
9 | |||||
[email protected] | 83c0abca | 2013-07-23 20:09:42 | [diff] [blame] | 10 | #include "content/common/content_export.h" |
[email protected] | 6e7845ae | 2013-03-29 21:48:11 | [diff] [blame] | 11 | #include "net/cert/cert_status_flags.h" |
[email protected] | 35be7ec | 2012-02-12 20:42:51 | [diff] [blame] | 12 | |
13 | namespace content { | ||||
14 | |||||
15 | // Convenience methods for serializing/deserializing the security info. | ||||
[email protected] | 83c0abca | 2013-07-23 20:09:42 | [diff] [blame] | 16 | CONTENT_EXPORT std::string SerializeSecurityInfo(int cert_id, |
17 | net::CertStatus cert_status, | ||||
18 | int security_bits, | ||||
19 | int connection_status); | ||||
[email protected] | 35be7ec | 2012-02-12 20:42:51 | [diff] [blame] | 20 | |
21 | bool DeserializeSecurityInfo(const std::string& state, | ||||
22 | int* cert_id, | ||||
23 | net::CertStatus* cert_status, | ||||
24 | int* security_bits, | ||||
25 | int* connection_status); | ||||
26 | |||||
27 | } // namespace content | ||||
28 | |||||
29 | #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ |