mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add API for SSL status and certificate retrieval (issue #1924)
This commit is contained in:
35
libcef/browser/ssl_status_impl.h
Normal file
35
libcef/browser/ssl_status_impl.h
Normal file
@ -0,0 +1,35 @@
|
||||
// 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 "include/cef_ssl_status.h"
|
||||
|
||||
#include "content/public/common/ssl_status.h"
|
||||
|
||||
// CefSSLStatus implementation
|
||||
class CefSSLStatusImpl : public CefSSLStatus {
|
||||
public:
|
||||
explicit CefSSLStatusImpl(const content::SSLStatus& value);
|
||||
|
||||
// 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_;
|
||||
int cert_id_;
|
||||
|
||||
IMPLEMENT_REFCOUNTING(CefSSLStatusImpl);
|
||||
DISALLOW_COPY_AND_ASSIGN(CefSSLStatusImpl);
|
||||
};
|
||||
|
||||
#endif // CEF_LIBCEF_BROWSER_SSL_STATUS_IMPL_H_
|
Reference in New Issue
Block a user