Revert 199284 "[Downloads] Clear current_path_ when deleting int..."
[chromium-blink-merge.git] / content / common / ssl_status_serialization.h
blobe3db1a2db673229cb6b874b2ae640776f912a9de
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_
8 #include <string>
10 #include "net/cert/cert_status_flags.h"
12 namespace content {
14 // Convenience methods for serializing/deserializing the security info.
15 std::string SerializeSecurityInfo(int cert_id,
16 net::CertStatus cert_status,
17 int security_bits,
18 int connection_status);
20 bool DeserializeSecurityInfo(const std::string& state,
21 int* cert_id,
22 net::CertStatus* cert_status,
23 int* security_bits,
24 int* connection_status);
26 } // namespace content
28 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_