2015-02-11 19:15:04 +01:00
|
|
|
// Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_BROWSER_SSL_INFO_IMPL_H_
|
|
|
|
#define CEF_LIBCEF_BROWSER_SSL_INFO_IMPL_H_
|
|
|
|
#pragma once
|
|
|
|
|
2024-04-30 17:45:07 +02:00
|
|
|
#include "cef/include/cef_ssl_info.h"
|
2015-02-11 19:15:04 +01:00
|
|
|
#include "net/ssl/ssl_info.h"
|
|
|
|
|
|
|
|
// CefSSLInfo implementation
|
|
|
|
class CefSSLInfoImpl : public CefSSLInfo {
|
|
|
|
public:
|
|
|
|
explicit CefSSLInfoImpl(const net::SSLInfo& value);
|
|
|
|
|
2021-12-06 21:40:25 +01:00
|
|
|
CefSSLInfoImpl(const CefSSLInfoImpl&) = delete;
|
|
|
|
CefSSLInfoImpl& operator=(const CefSSLInfoImpl&) = delete;
|
|
|
|
|
2015-02-11 19:15:04 +01:00
|
|
|
// CefSSLInfo methods.
|
2015-12-18 19:03:03 +01:00
|
|
|
cef_cert_status_t GetCertStatus() override;
|
2016-09-02 12:01:33 +02:00
|
|
|
CefRefPtr<CefX509Certificate> GetX509Certificate() override;
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
private:
|
2024-01-20 23:48:57 +01:00
|
|
|
cef_cert_status_t cert_status_ = CERT_STATUS_NONE;
|
2016-09-02 12:01:33 +02:00
|
|
|
CefRefPtr<CefX509Certificate> cert_;
|
2015-02-11 19:15:04 +01:00
|
|
|
|
|
|
|
IMPLEMENT_REFCOUNTING(CefSSLInfoImpl);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_SSL_INFO_IMPL_H_
|