namespace Xilium.CefGlue { using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using Xilium.CefGlue.Interop; /// /// Callback interface used for asynchronous continuation of authentication /// requests. /// public sealed unsafe partial class CefAuthCallback { /// /// Continue the authentication request. /// public void Continue(string username, string password) { fixed (char* username_str = username) fixed (char* password_str = password) { var n_username = new cef_string_t(username_str, username != null ? username.Length : 0); var n_password = new cef_string_t(password_str, password != null ? password.Length : 0); cef_auth_callback_t.cont(_self, &n_username, &n_password); } } /// /// Cancel the authentication request. /// public void Cancel() { cef_auth_callback_t.cancel(_self); } } }