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

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

Issue 71633002: Convert SignedCertificateClass to be ref_counted, and add an SCTStore in which to store them. Add S… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: few lint fixes Created 7 years, 1 month 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" // for SCTIdStatusList
11 #include "net/cert/cert_status_flags.h" 12 #include "net/cert/cert_status_flags.h"
13 #include "net/cert/sct_status_flags.h"
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(int cert_id,
17 net::CertStatus cert_status, 19 net::CertStatus cert_status, int security_bits, int connection_status,
18 int security_bits, 20 const SCTIdStatusList& signed_certificate_timestamp_ids);
19 int connection_status,
20 int signed_certificate_timestam p_id);
21 21
22 bool DeserializeSecurityInfo(const std::string& state, 22 bool DeserializeSecurityInfo(const std::string& state,
23 int* cert_id, 23 int* cert_id,
24 net::CertStatus* cert_status, 24 net::CertStatus* cert_status,
25 int* security_bits, 25 int* security_bits,
26 int* connection_status, 26 int* connection_status,
27 int* signed_certificate_timestamp_id); 27 SCTIdStatusList* signed_certificate_timestamp_ids);
28 28
29 } // namespace content 29 } // namespace content
30 30
31 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ 31 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_impl.cc ('k') | content/common/ssl_status_serialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698