• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2015 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_BROWSER_SSL_INFO_IMPL_H_
6 #define CEF_LIBCEF_BROWSER_SSL_INFO_IMPL_H_
7 #pragma once
8 
9 #include "include/cef_ssl_info.h"
10 
11 #include "net/ssl/ssl_info.h"
12 
13 // CefSSLInfo implementation
14 class CefSSLInfoImpl : public CefSSLInfo {
15  public:
16   explicit CefSSLInfoImpl(const net::SSLInfo& value);
17 
18   CefSSLInfoImpl(const CefSSLInfoImpl&) = delete;
19   CefSSLInfoImpl& operator=(const CefSSLInfoImpl&) = delete;
20 
21   // CefSSLInfo methods.
22   cef_cert_status_t GetCertStatus() override;
23   CefRefPtr<CefX509Certificate> GetX509Certificate() override;
24 
25  private:
26   cef_cert_status_t cert_status_;
27   CefRefPtr<CefX509Certificate> cert_;
28 
29   IMPLEMENT_REFCOUNTING(CefSSLInfoImpl);
30 };
31 
32 #endif  // CEF_LIBCEF_BROWSER_SSL_INFO_IMPL_H_
33