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

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

Issue 1225983003: Clean up the interface to DeserializeSecurityInfo, fix uninitialized memory use. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months 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/signed_certificate_timestamp_id_and_status.h" 11 #include "content/public/common/ssl_status.h"
12 #include "net/cert/cert_status_flags.h"
13 12
14 namespace content { 13 namespace content {
15 14
16 // Convenience methods for serializing/deserializing the security info. 15 // Serializes the given security info.
17 CONTENT_EXPORT std::string SerializeSecurityInfo( 16 CONTENT_EXPORT std::string SerializeSecurityInfo(
18 int cert_id, 17 int cert_id,
19 net::CertStatus cert_status, 18 net::CertStatus cert_status,
20 int security_bits, 19 int security_bits,
21 int connection_status, 20 int connection_status,
22 const SignedCertificateTimestampIDStatusList& 21 const SignedCertificateTimestampIDStatusList&
23 signed_certificate_timestamp_ids); 22 signed_certificate_timestamp_ids);
24 23
25 bool DeserializeSecurityInfo( 24 // Deerializes the given security info. Note that this returns the SecurityStyle
estark 2015/07/08 18:17:42 Deserializes (missing first s)
Avi (use Gerrit) 2015/07/08 18:30:00 Done.
26 const std::string& state, 25 // and ContentStatus fields with default values.
27 int* cert_id, 26 SSLStatus DeserializeSecurityInfo(const std::string& state);
28 net::CertStatus* cert_status,
29 int* security_bits,
30 int* connection_status,
31 SignedCertificateTimestampIDStatusList* signed_certificate_timestamp_ids);
32 27
33 } // namespace content 28 } // namespace content
34 29
35 #endif // CONTENT_COMMON_SSL_STATUS_SERIALIZATION_H_ 30 #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