mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Apply clang-format to all C, C++ and ObjC files (issue #2171)
This commit is contained in:
@ -9,6 +9,8 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=debd32c1e6bb7d1caca659f93e1a6fbb0e5018a9$
|
||||
//
|
||||
|
||||
#include "libcef_dll/cpptoc/request_handler_cpptoc.h"
|
||||
#include "libcef_dll/cpptoc/resource_handler_cpptoc.h"
|
||||
@ -16,21 +18,23 @@
|
||||
#include "libcef_dll/ctocpp/auth_callback_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/browser_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/frame_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/request_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/request_callback_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/request_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/response_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/sslinfo_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/select_client_certificate_callback_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/sslinfo_ctocpp.h"
|
||||
#include "libcef_dll/ctocpp/x509certificate_ctocpp.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK request_handler_on_before_browse(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_request_t* request, int is_redirect) {
|
||||
int CEF_CALLBACK
|
||||
request_handler_on_before_browse(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_request_t* request,
|
||||
int is_redirect) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -51,19 +55,20 @@ int CEF_CALLBACK request_handler_on_before_browse(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefRequestHandlerCppToC::Get(self)->OnBeforeBrowse(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request),
|
||||
is_redirect?true:false);
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request), is_redirect ? true : false);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK request_handler_on_open_urlfrom_tab(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, const cef_string_t* target_url,
|
||||
cef_window_open_disposition_t target_disposition, int user_gesture) {
|
||||
struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
const cef_string_t* target_url,
|
||||
cef_window_open_disposition_t target_disposition,
|
||||
int user_gesture) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -84,20 +89,19 @@ int CEF_CALLBACK request_handler_on_open_urlfrom_tab(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefRequestHandlerCppToC::Get(self)->OnOpenURLFromTab(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefString(target_url),
|
||||
target_disposition,
|
||||
user_gesture?true:false);
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefString(target_url), target_disposition, user_gesture ? true : false);
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
cef_return_value_t CEF_CALLBACK request_handler_on_before_resource_load(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_request_t* request,
|
||||
cef_request_callback_t* callback) {
|
||||
cef_return_value_t CEF_CALLBACK
|
||||
request_handler_on_before_resource_load(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_request_t* request,
|
||||
cef_request_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -121,20 +125,21 @@ cef_return_value_t CEF_CALLBACK request_handler_on_before_resource_load(
|
||||
return RV_CONTINUE;
|
||||
|
||||
// Execute
|
||||
cef_return_value_t _retval = CefRequestHandlerCppToC::Get(
|
||||
self)->OnBeforeResourceLoad(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request),
|
||||
CefRequestCallbackCToCpp::Wrap(callback));
|
||||
cef_return_value_t _retval =
|
||||
CefRequestHandlerCppToC::Get(self)->OnBeforeResourceLoad(
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request),
|
||||
CefRequestCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_resource_handler_t* CEF_CALLBACK request_handler_get_resource_handler(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_request_t* request) {
|
||||
struct _cef_resource_handler_t* CEF_CALLBACK
|
||||
request_handler_get_resource_handler(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_request_t* request) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -154,20 +159,22 @@ struct _cef_resource_handler_t* CEF_CALLBACK request_handler_get_resource_handle
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefResourceHandler> _retval = CefRequestHandlerCppToC::Get(
|
||||
self)->GetResourceHandler(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request));
|
||||
CefRefPtr<CefResourceHandler> _retval =
|
||||
CefRequestHandlerCppToC::Get(self)->GetResourceHandler(
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefResourceHandlerCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_handler_on_resource_redirect(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_request_t* request,
|
||||
struct _cef_response_t* response, cef_string_t* new_url) {
|
||||
void CEF_CALLBACK
|
||||
request_handler_on_resource_redirect(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_request_t* request,
|
||||
struct _cef_response_t* response,
|
||||
cef_string_t* new_url) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -199,17 +206,17 @@ void CEF_CALLBACK request_handler_on_resource_redirect(
|
||||
|
||||
// Execute
|
||||
CefRequestHandlerCppToC::Get(self)->OnResourceRedirect(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request),
|
||||
CefResponseCToCpp::Wrap(response),
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request), CefResponseCToCpp::Wrap(response),
|
||||
new_urlStr);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK request_handler_on_resource_response(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_request_t* request,
|
||||
struct _cef_response_t* response) {
|
||||
int CEF_CALLBACK
|
||||
request_handler_on_resource_response(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_request_t* request,
|
||||
struct _cef_response_t* response) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -234,18 +241,19 @@ int CEF_CALLBACK request_handler_on_resource_response(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefRequestHandlerCppToC::Get(self)->OnResourceResponse(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request),
|
||||
CefResponseCToCpp::Wrap(response));
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request), CefResponseCToCpp::Wrap(response));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
struct _cef_response_filter_t* CEF_CALLBACK request_handler_get_resource_response_filter(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_request_t* request,
|
||||
struct _cef_response_filter_t* CEF_CALLBACK
|
||||
request_handler_get_resource_response_filter(
|
||||
struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_request_t* request,
|
||||
struct _cef_response_t* response) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -270,22 +278,23 @@ struct _cef_response_filter_t* CEF_CALLBACK request_handler_get_resource_respons
|
||||
return NULL;
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefResponseFilter> _retval = CefRequestHandlerCppToC::Get(
|
||||
self)->GetResourceResponseFilter(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request),
|
||||
CefResponseCToCpp::Wrap(response));
|
||||
CefRefPtr<CefResponseFilter> _retval =
|
||||
CefRequestHandlerCppToC::Get(self)->GetResourceResponseFilter(
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request), CefResponseCToCpp::Wrap(response));
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefResponseFilterCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_handler_on_resource_load_complete(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, cef_request_t* request,
|
||||
struct _cef_response_t* response, cef_urlrequest_status_t status,
|
||||
int64 received_content_length) {
|
||||
void CEF_CALLBACK
|
||||
request_handler_on_resource_load_complete(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
cef_request_t* request,
|
||||
struct _cef_response_t* response,
|
||||
cef_urlrequest_status_t status,
|
||||
int64 received_content_length) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -310,19 +319,21 @@ void CEF_CALLBACK request_handler_on_resource_load_complete(
|
||||
|
||||
// Execute
|
||||
CefRequestHandlerCppToC::Get(self)->OnResourceLoadComplete(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request),
|
||||
CefResponseCToCpp::Wrap(response),
|
||||
status,
|
||||
received_content_length);
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
CefRequestCToCpp::Wrap(request), CefResponseCToCpp::Wrap(response),
|
||||
status, received_content_length);
|
||||
}
|
||||
|
||||
int CEF_CALLBACK request_handler_get_auth_credentials(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_frame_t* frame, int isProxy, const cef_string_t* host, int port,
|
||||
const cef_string_t* realm, const cef_string_t* scheme,
|
||||
cef_auth_callback_t* callback) {
|
||||
int CEF_CALLBACK
|
||||
request_handler_get_auth_credentials(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_frame_t* frame,
|
||||
int isProxy,
|
||||
const cef_string_t* host,
|
||||
int port,
|
||||
const cef_string_t* realm,
|
||||
const cef_string_t* scheme,
|
||||
cef_auth_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -348,23 +359,20 @@ int CEF_CALLBACK request_handler_get_auth_credentials(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefRequestHandlerCppToC::Get(self)->GetAuthCredentials(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefFrameCToCpp::Wrap(frame),
|
||||
isProxy?true:false,
|
||||
CefString(host),
|
||||
port,
|
||||
CefString(realm),
|
||||
CefString(scheme),
|
||||
CefAuthCallbackCToCpp::Wrap(callback));
|
||||
CefBrowserCToCpp::Wrap(browser), CefFrameCToCpp::Wrap(frame),
|
||||
isProxy ? true : false, CefString(host), port, CefString(realm),
|
||||
CefString(scheme), CefAuthCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK request_handler_on_quota_request(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* origin_url, int64 new_size,
|
||||
cef_request_callback_t* callback) {
|
||||
int CEF_CALLBACK
|
||||
request_handler_on_quota_request(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* origin_url,
|
||||
int64 new_size,
|
||||
cef_request_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -385,18 +393,18 @@ int CEF_CALLBACK request_handler_on_quota_request(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefRequestHandlerCppToC::Get(self)->OnQuotaRequest(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(origin_url),
|
||||
new_size,
|
||||
CefBrowserCToCpp::Wrap(browser), CefString(origin_url), new_size,
|
||||
CefRequestCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_handler_on_protocol_execution(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* url, int* allow_os_execution) {
|
||||
void CEF_CALLBACK
|
||||
request_handler_on_protocol_execution(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* url,
|
||||
int* allow_os_execution) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -416,24 +424,25 @@ void CEF_CALLBACK request_handler_on_protocol_execution(
|
||||
return;
|
||||
|
||||
// Translate param: allow_os_execution; type: bool_byref
|
||||
bool allow_os_executionBool = (
|
||||
allow_os_execution && *allow_os_execution)?true:false;
|
||||
bool allow_os_executionBool =
|
||||
(allow_os_execution && *allow_os_execution) ? true : false;
|
||||
|
||||
// Execute
|
||||
CefRequestHandlerCppToC::Get(self)->OnProtocolExecution(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(url),
|
||||
allow_os_executionBool);
|
||||
CefBrowserCToCpp::Wrap(browser), CefString(url), allow_os_executionBool);
|
||||
|
||||
// Restore param: allow_os_execution; type: bool_byref
|
||||
if (allow_os_execution)
|
||||
*allow_os_execution = allow_os_executionBool?true:false;
|
||||
*allow_os_execution = allow_os_executionBool ? true : false;
|
||||
}
|
||||
|
||||
int CEF_CALLBACK request_handler_on_certificate_error(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
cef_errorcode_t cert_error, const cef_string_t* request_url,
|
||||
struct _cef_sslinfo_t* ssl_info, cef_request_callback_t* callback) {
|
||||
int CEF_CALLBACK
|
||||
request_handler_on_certificate_error(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_errorcode_t cert_error,
|
||||
const cef_string_t* request_url,
|
||||
struct _cef_sslinfo_t* ssl_info,
|
||||
cef_request_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -458,9 +467,7 @@ int CEF_CALLBACK request_handler_on_certificate_error(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefRequestHandlerCppToC::Get(self)->OnCertificateError(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
cert_error,
|
||||
CefString(request_url),
|
||||
CefBrowserCToCpp::Wrap(browser), cert_error, CefString(request_url),
|
||||
CefSSLInfoCToCpp::Wrap(ssl_info),
|
||||
CefRequestCallbackCToCpp::Wrap(callback));
|
||||
|
||||
@ -469,8 +476,12 @@ int CEF_CALLBACK request_handler_on_certificate_error(
|
||||
}
|
||||
|
||||
int CEF_CALLBACK request_handler_on_select_client_certificate(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser, int isProxy,
|
||||
const cef_string_t* host, int port, size_t certificatesCount,
|
||||
struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
int isProxy,
|
||||
const cef_string_t* host,
|
||||
int port,
|
||||
size_t certificatesCount,
|
||||
struct _cef_x509certificate_t* const* certificates,
|
||||
cef_select_client_certificate_callback_t* callback) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
@ -496,7 +507,7 @@ int CEF_CALLBACK request_handler_on_select_client_certificate(
|
||||
return 0;
|
||||
|
||||
// Translate param: certificates; type: refptr_vec_diff_byref_const
|
||||
std::vector<CefRefPtr<CefX509Certificate> > certificatesList;
|
||||
std::vector<CefRefPtr<CefX509Certificate>> certificatesList;
|
||||
if (certificatesCount > 0) {
|
||||
for (size_t i = 0; i < certificatesCount; ++i) {
|
||||
CefRefPtr<CefX509Certificate> certificatesVal =
|
||||
@ -507,20 +518,18 @@ int CEF_CALLBACK request_handler_on_select_client_certificate(
|
||||
|
||||
// Execute
|
||||
bool _retval = CefRequestHandlerCppToC::Get(self)->OnSelectClientCertificate(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
isProxy?true:false,
|
||||
CefString(host),
|
||||
port,
|
||||
certificatesList,
|
||||
CefBrowserCToCpp::Wrap(browser), isProxy ? true : false, CefString(host),
|
||||
port, certificatesList,
|
||||
CefSelectClientCertificateCallbackCToCpp::Wrap(callback));
|
||||
|
||||
// Return type: bool
|
||||
return _retval;
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_handler_on_plugin_crashed(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* plugin_path) {
|
||||
void CEF_CALLBACK
|
||||
request_handler_on_plugin_crashed(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
const cef_string_t* plugin_path) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -537,12 +546,12 @@ void CEF_CALLBACK request_handler_on_plugin_crashed(
|
||||
|
||||
// Execute
|
||||
CefRequestHandlerCppToC::Get(self)->OnPluginCrashed(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(plugin_path));
|
||||
CefBrowserCToCpp::Wrap(browser), CefString(plugin_path));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_handler_on_render_view_ready(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser) {
|
||||
void CEF_CALLBACK
|
||||
request_handler_on_render_view_ready(struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
@ -559,7 +568,8 @@ void CEF_CALLBACK request_handler_on_render_view_ready(
|
||||
}
|
||||
|
||||
void CEF_CALLBACK request_handler_on_render_process_terminated(
|
||||
struct _cef_request_handler_t* self, cef_browser_t* browser,
|
||||
struct _cef_request_handler_t* self,
|
||||
cef_browser_t* browser,
|
||||
cef_termination_status_t status) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
@ -573,13 +583,11 @@ void CEF_CALLBACK request_handler_on_render_process_terminated(
|
||||
|
||||
// Execute
|
||||
CefRequestHandlerCppToC::Get(self)->OnRenderProcessTerminated(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
status);
|
||||
CefBrowserCToCpp::Wrap(browser), status);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefRequestHandlerCppToC::CefRequestHandlerCppToC() {
|
||||
@ -606,18 +614,25 @@ CefRequestHandlerCppToC::CefRequestHandlerCppToC() {
|
||||
request_handler_on_render_process_terminated;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefRequestHandler> CefCppToCRefCounted<CefRequestHandlerCppToC,
|
||||
CefRequestHandler, cef_request_handler_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_request_handler_t* s) {
|
||||
template <>
|
||||
CefRefPtr<CefRequestHandler> CefCppToCRefCounted<
|
||||
CefRequestHandlerCppToC,
|
||||
CefRequestHandler,
|
||||
cef_request_handler_t>::UnwrapDerived(CefWrapperType type,
|
||||
cef_request_handler_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if DCHECK_IS_ON()
|
||||
template<> base::AtomicRefCount CefCppToCRefCounted<CefRequestHandlerCppToC,
|
||||
CefRequestHandler, cef_request_handler_t>::DebugObjCt = 0;
|
||||
template <>
|
||||
base::AtomicRefCount CefCppToCRefCounted<CefRequestHandlerCppToC,
|
||||
CefRequestHandler,
|
||||
cef_request_handler_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToCRefCounted<CefRequestHandlerCppToC,
|
||||
CefRequestHandler, cef_request_handler_t>::kWrapperType =
|
||||
template <>
|
||||
CefWrapperType CefCppToCRefCounted<CefRequestHandlerCppToC,
|
||||
CefRequestHandler,
|
||||
cef_request_handler_t>::kWrapperType =
|
||||
WT_REQUEST_HANDLER;
|
||||
|
Reference in New Issue
Block a user