From 30659fd9ec6e396cf1d8f2bd3c906a45419d2931 Mon Sep 17 00:00:00 2001 From: "danm%netscape.com" Date: Fri, 16 Jun 2000 14:52:53 +0000 Subject: [PATCH] adding accessor for nsIPrompt member variable. bugs 25684,28594. r=gagan@netscape.com git-svn-id: svn://10.0.0.236/trunk@72390 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/protocol/http/public/nsIHTTPChannel.idl | 7 +++++-- mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp | 9 +++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/mozilla/netwerk/protocol/http/public/nsIHTTPChannel.idl b/mozilla/netwerk/protocol/http/public/nsIHTTPChannel.idl index 22f896c3f5d..c30a5fce061 100644 --- a/mozilla/netwerk/protocol/http/public/nsIHTTPChannel.idl +++ b/mozilla/netwerk/protocol/http/public/nsIHTTPChannel.idl @@ -28,6 +28,7 @@ interface nsISimpleEnumerator; interface nsIAtom; interface nsIInputStream; interface nsIURI; +interface nsIPrompt; [scriptable, uuid(35c00430-1938-11d3-933a-000064657374)] interface nsIHTTPChannel : nsIChannel @@ -83,12 +84,14 @@ interface nsIHTTPChannel : nsIChannel readonly attribute nsIStreamListener ResponseDataListener; - readonly attribute string Charset; + readonly attribute string Charset; - attribute PRBool AuthTriedWithPrehost; + attribute PRBool AuthTriedWithPrehost; readonly attribute PRBool UsingProxy; + readonly attribute nsIPrompt prompter; + /* This string if set is used for forming the final request. So if you call SetProxyRequestURI(foo) on an HTTP Channel, the outbound diff --git a/mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp b/mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp index 0dfb3f6cb2d..3606abb9ae2 100644 --- a/mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp +++ b/mozilla/netwerk/protocol/http/src/nsHTTPChannel.cpp @@ -2328,6 +2328,15 @@ nsHTTPChannel::GetUsingProxy(PRBool *aUsingProxy) return NS_OK; } +NS_IMETHODIMP +nsHTTPChannel::GetPrompter(nsIPrompt **aPrompter) { + + if (!aPrompter) + return NS_ERROR_NULL_POINTER; + *aPrompter = mPrompter; + NS_IF_ADDREF(*aPrompter); + return NS_OK; +} NS_IMETHODIMP nsHTTPChannel::GetSecurityInfo(nsISupports * *aSecurityInfo)