mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add HandleProtocolExecution event for unregistered protocols (issue #155).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@163 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -160,6 +160,20 @@ CefHandler::RetVal CefHandlerCToCpp::HandleBeforeResourceLoad(
|
||||
return rv;
|
||||
}
|
||||
|
||||
CefHandler::RetVal CefHandlerCToCpp::HandleProtocolExecution(
|
||||
CefRefPtr<CefBrowser> browser, const CefString& url,
|
||||
bool* allow_os_execution)
|
||||
{
|
||||
if(CEF_MEMBER_MISSING(struct_, handle_protocol_execution))
|
||||
return RV_CONTINUE;
|
||||
|
||||
int allowExec = *allow_os_execution?1:0;
|
||||
cef_retval_t rv = struct_->handle_protocol_execution(struct_,
|
||||
CefBrowserCppToC::Wrap(browser), url.GetStruct(), &allowExec);
|
||||
*allow_os_execution = allowExec?true:false;
|
||||
return rv;
|
||||
}
|
||||
|
||||
CefHandler::RetVal CefHandlerCToCpp::HandleDownloadResponse(
|
||||
CefRefPtr<CefBrowser> browser, const CefString& mimeType,
|
||||
const CefString& fileName, int64 contentLength,
|
||||
|
Reference in New Issue
Block a user