Allow empty |browser| parameter to CefSchemeHandlerFactory::Create (issue #834).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1015 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
5e014e1f34
commit
8f95df96c7
|
@ -135,7 +135,7 @@ class CefSchemeHandlerFactory : public virtual CefBase {
|
|||
// initiated using the CefWebURLRequest API |browser| will be NULL. The
|
||||
// |request| object passed to this method will not contain cookie data.
|
||||
///
|
||||
/*--cef()--*/
|
||||
/*--cef(optional_param=browser)--*/
|
||||
virtual CefRefPtr<CefSchemeHandler> Create(CefRefPtr<CefBrowser> browser,
|
||||
const CefString& scheme_name,
|
||||
CefRefPtr<CefRequest> request) =0;
|
||||
|
|
|
@ -26,10 +26,6 @@ struct _cef_scheme_handler_t* CEF_CALLBACK scheme_handler_factory_create(
|
|||
DCHECK(self);
|
||||
if (!self)
|
||||
return NULL;
|
||||
// Verify param: browser; type: refptr_diff
|
||||
DCHECK(browser);
|
||||
if (!browser)
|
||||
return NULL;
|
||||
// Verify param: scheme_name; type: string_byref_const
|
||||
DCHECK(scheme_name);
|
||||
if (!scheme_name)
|
||||
|
@ -38,6 +34,7 @@ struct _cef_scheme_handler_t* CEF_CALLBACK scheme_handler_factory_create(
|
|||
DCHECK(request);
|
||||
if (!request)
|
||||
return NULL;
|
||||
// Unverified params: browser
|
||||
|
||||
// Execute
|
||||
CefRefPtr<CefSchemeHandler> _retval = CefSchemeHandlerFactoryCppToC::Get(
|
||||
|
|
|
@ -26,10 +26,6 @@ CefRefPtr<CefSchemeHandler> CefSchemeHandlerFactoryCToCpp::Create(
|
|||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: browser; type: refptr_diff
|
||||
DCHECK(browser.get());
|
||||
if (!browser.get())
|
||||
return NULL;
|
||||
// Verify param: scheme_name; type: string_byref_const
|
||||
DCHECK(!scheme_name.empty());
|
||||
if (scheme_name.empty())
|
||||
|
@ -38,6 +34,7 @@ CefRefPtr<CefSchemeHandler> CefSchemeHandlerFactoryCToCpp::Create(
|
|||
DCHECK(request.get());
|
||||
if (!request.get())
|
||||
return NULL;
|
||||
// Unverified params: browser
|
||||
|
||||
// Execute
|
||||
cef_scheme_handler_t* _retval = struct_->create(struct_,
|
||||
|
|
Loading…
Reference in New Issue