blob: fa1230bb9f873ff67be973c6a742d750a8f27b71 [file] [log] [blame]
[email protected]35be7ec2012-02-12 20:42:511// 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]35be7ec2012-02-12 20:42:517
8#include <string>
9
[email protected]83c0abca2013-07-23 20:09:4210#include "content/common/content_export.h"
[email protected]6e7845ae2013-03-29 21:48:1111#include "net/cert/cert_status_flags.h"
[email protected]35be7ec2012-02-12 20:42:5112
13namespace content {
14
15// Convenience methods for serializing/deserializing the security info.
[email protected]83c0abca2013-07-23 20:09:4216CONTENT_EXPORT std::string SerializeSecurityInfo(int cert_id,
17 net::CertStatus cert_status,
18 int security_bits,
19 int connection_status);
[email protected]35be7ec2012-02-12 20:42:5120
21bool 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_