Fix translator error with X509CertificateList (issue #1824)
This commit is contained in:
parent
17c2ecd79d
commit
ffab334e94
|
@ -38,10 +38,11 @@
|
|||
#define CEF_INCLUDE_CEF_RENDER_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_browser.h"
|
||||
#include "include/cef_drag_data.h"
|
||||
#include <vector>
|
||||
|
||||
///
|
||||
// Implement this interface to handle events when window rendering is disabled.
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
#define CEF_INCLUDE_CEF_REQUEST_HANDLER_H_
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "include/cef_auth_callback.h"
|
||||
#include "include/cef_base.h"
|
||||
#include "include/cef_browser.h"
|
||||
|
@ -96,6 +98,7 @@ class CefRequestHandler : public virtual CefBase {
|
|||
typedef cef_termination_status_t TerminationStatus;
|
||||
typedef cef_urlrequest_status_t URLRequestStatus;
|
||||
typedef cef_window_open_disposition_t WindowOpenDisposition;
|
||||
typedef std::vector<CefRefPtr<CefX509Certificate> > X509CertificateList;
|
||||
|
||||
///
|
||||
// Called on the UI thread before browser navigation. Return true to cancel
|
||||
|
@ -315,7 +318,7 @@ class CefRequestHandler : public virtual CefBase {
|
|||
bool isProxy,
|
||||
const CefString& host,
|
||||
int port,
|
||||
const CefX509CertificateList& certificates,
|
||||
const X509CertificateList& certificates,
|
||||
CefRefPtr<CefSelectClientCertificateCallback> callback) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -185,6 +185,4 @@ class CefX509Certificate : public virtual CefBase {
|
|||
virtual void GetPEMEncodedIssuerChain(IssuerChainBinaryList& chain) =0;
|
||||
};
|
||||
|
||||
typedef std::vector<CefRefPtr<CefX509Certificate> > CefX509CertificateList;
|
||||
|
||||
#endif // CEF_INCLUDE_CEF_X509_CERTIFICATE_H_
|
||||
|
|
|
@ -780,7 +780,7 @@ void CefContentBrowserClient::SelectClientCertificate(
|
|||
return;
|
||||
}
|
||||
|
||||
CefX509CertificateList certs;
|
||||
CefRequestHandler::X509CertificateList certs;
|
||||
for (std::vector<scoped_refptr<net::X509Certificate> >::iterator iter =
|
||||
cert_request_info->client_certs.begin();
|
||||
iter != cert_request_info->client_certs.end(); iter++) {
|
||||
|
|
|
@ -455,7 +455,7 @@ bool CefRequestHandlerCToCpp::OnCertificateError(CefRefPtr<CefBrowser> browser,
|
|||
|
||||
bool CefRequestHandlerCToCpp::OnSelectClientCertificate(
|
||||
CefRefPtr<CefBrowser> browser, bool isProxy, const CefString& host,
|
||||
int port, const CefX509CertificateList& certificates,
|
||||
int port, const X509CertificateList& certificates,
|
||||
CefRefPtr<CefSelectClientCertificateCallback> callback) {
|
||||
cef_request_handler_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, on_select_client_certificate))
|
||||
|
|
|
@ -70,8 +70,7 @@ class CefRequestHandlerCToCpp
|
|||
CefRefPtr<CefSSLInfo> ssl_info,
|
||||
CefRefPtr<CefRequestCallback> callback) override;
|
||||
bool OnSelectClientCertificate(CefRefPtr<CefBrowser> browser, bool isProxy,
|
||||
const CefString& host, int port,
|
||||
const CefX509CertificateList& certificates,
|
||||
const CefString& host, int port, const X509CertificateList& certificates,
|
||||
CefRefPtr<CefSelectClientCertificateCallback> callback) override;
|
||||
void OnPluginCrashed(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& plugin_path) override;
|
||||
|
|
|
@ -705,7 +705,7 @@ bool ClientHandler::OnSelectClientCertificate(
|
|||
bool isProxy,
|
||||
const CefString& host,
|
||||
int port,
|
||||
const CefX509CertificateList& certificates,
|
||||
const X509CertificateList& certificates,
|
||||
CefRefPtr<CefSelectClientCertificateCallback> callback) {
|
||||
CEF_REQUIRE_UI_THREAD();
|
||||
|
||||
|
|
|
@ -257,7 +257,7 @@ class ClientHandler : public CefClient,
|
|||
bool isProxy,
|
||||
const CefString& host,
|
||||
int port,
|
||||
const CefX509CertificateList& certificates,
|
||||
const X509CertificateList& certificates,
|
||||
CefRefPtr<CefSelectClientCertificateCallback> callback) OVERRIDE;
|
||||
void OnRenderProcessTerminated(CefRefPtr<CefBrowser> browser,
|
||||
TerminationStatus status) OVERRIDE;
|
||||
|
|
Loading…
Reference in New Issue