mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add OnRenderProcessTerminated and OnPluginCrashed notifications to CefLoadHandler (issue #633).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@710 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -93,6 +93,48 @@ void CEF_CALLBACK load_handler_on_load_error(struct _cef_load_handler_t* self,
|
||||
CefString(failedUrl));
|
||||
}
|
||||
|
||||
void CEF_CALLBACK load_handler_on_render_process_terminated(
|
||||
struct _cef_load_handler_t* self, cef_browser_t* browser,
|
||||
enum cef_termination_status_t status) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return;
|
||||
// Verify param: browser; type: refptr_diff
|
||||
DCHECK(browser);
|
||||
if (!browser)
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefLoadHandlerCppToC::Get(self)->OnRenderProcessTerminated(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
status);
|
||||
}
|
||||
|
||||
void CEF_CALLBACK load_handler_on_plugin_crashed(
|
||||
struct _cef_load_handler_t* self, cef_browser_t* browser,
|
||||
const cef_string_t* plugin_path) {
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
DCHECK(self);
|
||||
if (!self)
|
||||
return;
|
||||
// Verify param: browser; type: refptr_diff
|
||||
DCHECK(browser);
|
||||
if (!browser)
|
||||
return;
|
||||
// Verify param: plugin_path; type: string_byref_const
|
||||
DCHECK(plugin_path);
|
||||
if (!plugin_path)
|
||||
return;
|
||||
|
||||
// Execute
|
||||
CefLoadHandlerCppToC::Get(self)->OnPluginCrashed(
|
||||
CefBrowserCToCpp::Wrap(browser),
|
||||
CefString(plugin_path));
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
@ -101,6 +143,9 @@ CefLoadHandlerCppToC::CefLoadHandlerCppToC(CefLoadHandler* cls)
|
||||
struct_.struct_.on_load_start = load_handler_on_load_start;
|
||||
struct_.struct_.on_load_end = load_handler_on_load_end;
|
||||
struct_.struct_.on_load_error = load_handler_on_load_error;
|
||||
struct_.struct_.on_render_process_terminated =
|
||||
load_handler_on_render_process_terminated;
|
||||
struct_.struct_.on_plugin_crashed = load_handler_on_plugin_crashed;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
|
Reference in New Issue
Block a user