mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 19:54:53 +00:00
Add IRequestContext.ClearHttpAuthCredentials (#2959)
Add IRequestContext.ClearHttpAuthCredentials
This commit is contained in:
@@ -145,6 +145,15 @@ namespace CefSharp
|
||||
_requestContext->ClearCertificateExceptions(wrapper);
|
||||
}
|
||||
|
||||
void RequestContext::ClearHttpAuthCredentials(ICompletionCallback^ callback)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
||||
CefRefPtr<CefCompletionCallback> wrapper = callback == nullptr ? NULL : new CefCompletionCallbackAdapter(callback);
|
||||
|
||||
_requestContext->ClearHttpAuthCredentials(wrapper);
|
||||
}
|
||||
|
||||
void RequestContext::CloseAllConnections(ICompletionCallback^ callback)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
||||
@@ -284,6 +284,14 @@ namespace CefSharp
|
||||
/// completion. This param is optional</param>
|
||||
virtual void ClearCertificateExceptions(ICompletionCallback^ callback);
|
||||
|
||||
/// <summary>
|
||||
/// Clears all HTTP authentication credentials that were added as part of handling
|
||||
/// <see cref="IRequestHandler.GetAuthCredentials"/>.
|
||||
/// </summary>
|
||||
/// <param name="callback">If is non-NULL it will be executed on the CEF UI thread after
|
||||
/// completion. This param is optional</param>
|
||||
virtual void ClearHttpAuthCredentials(ICompletionCallback^ callback);
|
||||
|
||||
/// <summary>
|
||||
/// Clears all active and idle connections that Chromium currently has.
|
||||
/// This is only recommended if you have released all other CEF objects but
|
||||
|
||||
@@ -172,6 +172,14 @@ namespace CefSharp
|
||||
/// completion. This param is optional</param>
|
||||
void ClearCertificateExceptions(ICompletionCallback callback);
|
||||
|
||||
/// <summary>
|
||||
/// Clears all HTTP authentication credentials that were added as part of handling
|
||||
/// <see cref="IRequestHandler.GetAuthCredentials"/>.
|
||||
/// </summary>
|
||||
/// <param name="callback">If is non-NULL it will be executed on the CEF UI thread after
|
||||
/// completion. This param is optional</param>
|
||||
void ClearHttpAuthCredentials(ICompletionCallback callback);
|
||||
|
||||
/// <summary>
|
||||
/// Clears all active and idle connections that Chromium currently has.
|
||||
/// This is only recommended if you have released all other CEF objects but
|
||||
|
||||
Reference in New Issue
Block a user