blob: 1c0e0f61ffc51a413b7ac1fb9c49ac745a1fe9a4 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ios/web/public/ssl_status.h"
namespace web {
SSLStatus::SSLStatus()
: security_style(SECURITY_STYLE_UNKNOWN),
cert_status(0),
content_status(NORMAL_CONTENT) {
}
SSLStatus::SSLStatus(const SSLStatus& other)
: security_style(other.security_style),
certificate(other.certificate),
cert_status(other.cert_status),
content_status(other.content_status),
cert_status_host(other.cert_status_host),
user_data(other.user_data ? other.user_data->Clone() : nullptr) {}
SSLStatus& SSLStatus::operator=(SSLStatus other) {
security_style = other.security_style;
certificate = other.certificate;
cert_status = other.cert_status;
content_status = other.content_status;
cert_status_host = other.cert_status_host;
user_data = other.user_data ? other.user_data->Clone() : nullptr;
return *this;
}
SSLStatus::~SSLStatus() {}
} // namespace web