Roll src/third_party/WebKit eac3800:0237a66 (svn 202606:202607)
[chromium-blink-merge.git] / content / public / common / ssl_status.cc
blobeaaed4138c3c4afc88faf66d69d7cf3ca86d6322
1 // Copyright (c) 2011 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 #include "content/public/common/ssl_status.h"
7 #include "net/ssl/ssl_info.h"
9 namespace content {
11 SSLStatus::SSLStatus()
12 : security_style(SECURITY_STYLE_UNKNOWN),
13 cert_id(0),
14 cert_status(0),
15 security_bits(-1),
16 key_exchange_info(0),
17 connection_status(0),
18 content_status(NORMAL_CONTENT) {
21 SSLStatus::SSLStatus(SecurityStyle security_style,
22 int cert_id,
23 const SignedCertificateTimestampIDStatusList&
24 signed_certificate_timestamp_ids,
25 const net::SSLInfo& ssl_info)
26 : security_style(security_style),
27 cert_id(cert_id),
28 cert_status(ssl_info.cert_status),
29 security_bits(ssl_info.security_bits),
30 key_exchange_info(ssl_info.key_exchange_info),
31 connection_status(ssl_info.connection_status),
32 content_status(NORMAL_CONTENT),
33 signed_certificate_timestamp_ids(signed_certificate_timestamp_ids) {}
35 SSLStatus::~SSLStatus() {}
37 } // namespace content