mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-05 22:48:06 +01:00
49a34d9160
Add "cef/" prefix for CEF #includes in libcef/ directory. Sort #includes by following https://google.github.io/styleguide/cppguide.html#Names_and_Order_of_Includes
40 lines
1.3 KiB
C++
40 lines
1.3 KiB
C++
// Copyright (c) 2016 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_STATUS_IMPL_H_
|
|
#define CEF_LIBCEF_BROWSER_SSL_STATUS_IMPL_H_
|
|
#pragma once
|
|
|
|
#include "cef/include/cef_ssl_status.h"
|
|
#include "content/public/browser/ssl_status.h"
|
|
|
|
// CefSSLStatus implementation
|
|
class CefSSLStatusImpl : public CefSSLStatus {
|
|
public:
|
|
explicit CefSSLStatusImpl(const content::SSLStatus& value);
|
|
|
|
CefSSLStatusImpl(const CefSSLStatusImpl&) = delete;
|
|
CefSSLStatusImpl& operator=(const CefSSLStatusImpl&) = delete;
|
|
|
|
// CefSSLStatus methods.
|
|
bool IsSecureConnection() override;
|
|
cef_cert_status_t GetCertStatus() override;
|
|
cef_ssl_version_t GetSSLVersion() override;
|
|
cef_ssl_content_status_t GetContentStatus() override;
|
|
CefRefPtr<CefX509Certificate> GetX509Certificate() override;
|
|
|
|
private:
|
|
cef_cert_status_t cert_status_;
|
|
cef_ssl_version_t ssl_version_;
|
|
cef_ssl_content_status_t content_status_;
|
|
|
|
// Don't create a CefX509Certificate object until requested.
|
|
scoped_refptr<net::X509Certificate> certificate_;
|
|
CefRefPtr<CefX509Certificate> cef_certificate_;
|
|
|
|
IMPLEMENT_REFCOUNTING(CefSSLStatusImpl);
|
|
};
|
|
|
|
#endif // CEF_LIBCEF_BROWSER_SSL_STATUS_IMPL_H_
|