// 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 #include "include/cef_ssl_info.h" #include "net/ssl/ssl_info.h" // CefSSLInfo implementation class CefSSLInfoImpl : public CefSSLInfo { public: explicit CefSSLInfoImpl(const net::SSLInfo& value); // CefSSLInfo methods. CefRefPtr GetSubject() override; CefRefPtr GetIssuer() override; CefRefPtr GetSerialNumber() override; CefTime GetValidStart() override; CefTime GetValidExpiry() override; CefRefPtr GetDEREncoded() override; CefRefPtr GetPEMEncoded() override; private: CefRefPtr subject_; CefRefPtr issuer_; CefRefPtr serial_number_; CefTime valid_start_; CefTime valid_expiry_; CefRefPtr der_encoded_; CefRefPtr pem_encoded_; IMPLEMENT_REFCOUNTING(CefSSLInfoImpl); DISALLOW_COPY_AND_ASSIGN(CefSSLInfoImpl); }; #endif // CEF_LIBCEF_BROWSER_SSL_INFO_IMPL_H_