namespace Cef3 { using System; using System.Collections.Generic; using System.Diagnostics; using System.Runtime.InteropServices; using Cef3.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) { if (username == null) throw new ArgumentNullException("username"); if (password == null) throw new ArgumentNullException("password"); fixed (char* username_str = username) fixed (char* password_str = password) { var n_username = new cef_string_t(username_str, username.Length); var n_password = new cef_string_t(password_str, password.Length); cef_auth_callback_t.cont(_self, &n_username, &n_password); } } /// /// Cancel the authentication request. /// public void Cancel() { cef_auth_callback_t.cancel(_self); } } }