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.
5 #ifndef CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
6 #define CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
10 #include "net/cert/cert_status_flags.h"
14 // Convenience methods for serializing/deserializing the security info.
15 std::string
SerializeSecurityInfo(int cert_id
,
16 net::CertStatus cert_status
,
18 int connection_status
);
20 bool DeserializeSecurityInfo(const std::string
& state
,
22 net::CertStatus
* cert_status
,
24 int* connection_status
);
26 } // namespace content
28 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_