mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Make the realm parameter to GetAuthCredentials() optional (issue #355).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@425 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -1334,7 +1334,7 @@ public:
|
|||||||
// hostname and port number. Set |username| and |password| and return
|
// hostname and port number. Set |username| and |password| and return
|
||||||
// true to handle the request. Return false to cancel the request.
|
// true to handle the request. Return false to cancel the request.
|
||||||
///
|
///
|
||||||
/*--cef()--*/
|
/*--cef(optional_param=realm)--*/
|
||||||
virtual bool GetAuthCredentials(CefRefPtr<CefBrowser> browser,
|
virtual bool GetAuthCredentials(CefRefPtr<CefBrowser> browser,
|
||||||
bool isProxy,
|
bool isProxy,
|
||||||
const CefString& host,
|
const CefString& host,
|
||||||
|
@ -326,10 +326,6 @@ int CEF_CALLBACK request_handler_get_auth_credentials(
|
|||||||
DCHECK(host);
|
DCHECK(host);
|
||||||
if (!host)
|
if (!host)
|
||||||
return 0;
|
return 0;
|
||||||
// Verify param: realm; type: string_byref_const
|
|
||||||
DCHECK(realm);
|
|
||||||
if (!realm)
|
|
||||||
return 0;
|
|
||||||
// Verify param: scheme; type: string_byref_const
|
// Verify param: scheme; type: string_byref_const
|
||||||
DCHECK(scheme);
|
DCHECK(scheme);
|
||||||
if (!scheme)
|
if (!scheme)
|
||||||
@ -342,6 +338,7 @@ int CEF_CALLBACK request_handler_get_auth_credentials(
|
|||||||
DCHECK(password);
|
DCHECK(password);
|
||||||
if (!password)
|
if (!password)
|
||||||
return 0;
|
return 0;
|
||||||
|
// Unverified params: realm
|
||||||
|
|
||||||
// Translate param: username; type: string_byref
|
// Translate param: username; type: string_byref
|
||||||
CefString usernameStr(username);
|
CefString usernameStr(username);
|
||||||
|
@ -281,14 +281,11 @@ bool CefRequestHandlerCToCpp::GetAuthCredentials(CefRefPtr<CefBrowser> browser,
|
|||||||
DCHECK(!host.empty());
|
DCHECK(!host.empty());
|
||||||
if (host.empty())
|
if (host.empty())
|
||||||
return false;
|
return false;
|
||||||
// Verify param: realm; type: string_byref_const
|
|
||||||
DCHECK(!realm.empty());
|
|
||||||
if (realm.empty())
|
|
||||||
return false;
|
|
||||||
// Verify param: scheme; type: string_byref_const
|
// Verify param: scheme; type: string_byref_const
|
||||||
DCHECK(!scheme.empty());
|
DCHECK(!scheme.empty());
|
||||||
if (scheme.empty())
|
if (scheme.empty())
|
||||||
return false;
|
return false;
|
||||||
|
// Unverified params: realm
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
int _retval = struct_->get_auth_credentials(struct_,
|
int _retval = struct_->get_auth_credentials(struct_,
|
||||||
|
Reference in New Issue
Block a user