public nsICancelable AsyncPromptAuth(nsIDOMWindow aParent, nsIChannel aChannel, nsIAuthPromptCallback aCallback, nsISupports aContext, uint level, nsIAuthInformation authInfo, string checkboxLabel, ref bool checkValue)
 {
     //throw new NotImplementedException();
     return null;
 }
Beispiel #2
0
 public nsICancelable AsyncPromptAuth(nsIDOMWindow aParent, nsIChannel aChannel, nsIAuthPromptCallback aCallback, nsISupports aContext, uint level, nsIAuthInformation authInfo, string checkboxLabel, ref bool checkValue)
 {
     //throw new NotImplementedException();
     return(null);
 }
Beispiel #3
0
 public nsICancelable AsyncPromptAuth(nsIChannel aChannel, nsIAuthPromptCallback aCallback, nsISupports aContext, uint level, nsIAuthInformation authInfo)
 {
     return(DefaultPromptFactory.GetPrompt <nsIAuthPrompt2>().AsyncPromptAuth(aChannel, aCallback, aContext, level, authInfo));
 }
 /// <summary>The async prompt authentication.</summary>
 /// <param name="parent">The parent.</param>
 /// <param name="channel">The channel.</param>
 /// <param name="callback">The callback.</param>
 /// <param name="context">The context.</param>
 /// <param name="level">The level.</param>
 /// <param name="authInfo">The authentication info.</param>
 /// <param name="checkboxLabel">The checkbox label.</param>
 /// <param name="checkValue">The check value.</param>
 /// <returns>The <see cref="nsICancelable"/>.</returns>
 public nsICancelable AsyncPromptAuth(
     nsIDOMWindow parent,
     nsIChannel channel,
     nsIAuthPromptCallback callback,
     nsISupports context,
     uint level,
     nsIAuthInformation authInfo,
     string checkboxLabel,
     ref bool checkValue)
 {
     return PromptService.AsyncPromptAuth(channel, callback, context, level, authInfo);
 }
		internal AsyncPromptAuthEventArgs(nsIAuthPromptCallback callback, Object context, AuthLevel authLevel, nsIAuthInformation authInformation, String checkMsg, Boolean checkState)
			: base(authLevel, authInformation, checkMsg, checkState)
		{
			m_AuthCallback = callback;
			m_Context = context;
			m_AuthInformation = authInformation;
		}
 public nsICancelable AsyncPromptAuth([MarshalAs(UnmanagedType.Interface)] nsIDOMWindow aParent, [MarshalAs(UnmanagedType.Interface)] nsIChannel aChannel, [MarshalAs(UnmanagedType.Interface)] nsIAuthPromptCallback aCallback, [MarshalAs(UnmanagedType.Interface)] nsISupports aContext, uint level, [MarshalAs(UnmanagedType.Interface)] nsIAuthInformation authInfo, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalType = "Gecko.CustomMarshalers.WStringMarshaler")] string checkboxLabel, [MarshalAs(UnmanagedType.U1)] ref bool checkValue)
 {
     return(null);
 }
			nsICancelable nsIPromptService2.AsyncPromptAuth(nsIDOMWindow aParent, nsIChannel aChannel, nsIAuthPromptCallback aCallback, Object aContext, UInt32 level, nsIAuthInformation authInfo, String checkboxLabel, ref Boolean checkValue)
			{
				Trace.TraceInformation("nsIPromptService2.AsyncPromptAuth");

				WebBrowser browser = GetBrowserFromDomWindow(aParent);
				if (browser == null)
				{
					Trace.TraceWarning("Can't get Browser object from DomWindow");
					aCallback.OnAuthCancelled(aContext, true);
					return null;
				}

				var e = new AsyncPromptAuthEventArgs(aCallback, aContext, (AuthLevel)level, authInfo, checkboxLabel, checkValue);
				browser.Events.Raise(EventKey.AsyncPromptAuth, e);
				checkValue = e.CheckState;
				return e;
			}