Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: content/common/ssl_status_serialization.h

Issue 88643002: SignedCertificateTimestamp storing & serialization code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@erans_patches
Patch Set: Fixes for wtc. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
wtc 2013/11/28 16:15:07 Include "content/public/common/signed_certificate_
alcutter 2013/11/28 16:42:18 Done.
11 #include "net/cert/cert_status_flags.h" 12 #include "net/cert/cert_status_flags.h"
13 #include "net/cert/sct_status_flags.h"
wtc 2013/11/28 16:15:07 This header should be unnecessary.
alcutter 2013/11/28 16:42:18 Done.
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,
18 int security_bits, 20 net::CertStatus cert_status,
19 int connection_status); 21 int security_bits,
22 int connection_status,
23 const SignedCertificateTimestampIDStatusList&
24 signed_certificate_timestamp_ids);
20 25
21 bool DeserializeSecurityInfo(const std::string& state, 26 bool DeserializeSecurityInfo(
22 int* cert_id, 27 const std::string& state,
23 net::CertStatus* cert_status, 28 int* cert_id,
24 int* security_bits, 29 net::CertStatus* cert_status,
25 int* connection_status); 30 int* security_bits,
31 int* connection_status,
32 SignedCertificateTimestampIDStatusList* signed_certificate_timestamp_ids);
26 33
27 } // namespace content 34 } // namespace content
28 35
29 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ 36 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698