Removed the check for proxy types here with the latest change in protocolproxyservice. r-valeski

This commit is contained in:
gagan%netscape.com 2000-02-24 02:09:46 +00:00
Родитель 253f4fed8a
Коммит 9e24bdcb8a
2 изменённых файлов: 3 добавлений и 11 удалений

Просмотреть файл

@ -272,7 +272,9 @@ nsHTTPHandler::NewChannel(const char* verb, nsIURI* i_URL,
rv = pChannel->SetNotificationCallbacks(notificationCallbacks);
if (NS_FAILED(rv)) goto done;
if (mCheckForProxy)
PRBool checkForProxy = PR_FALSE;
rv = mProxySvc->GetProxyEnabled(&checkForProxy);
if (checkForProxy)
{
rv = mProxySvc->ExamineForProxy(i_URL, pChannel);
if (NS_FAILED(rv)) goto done;
@ -520,7 +522,6 @@ nsHTTPHandler::SetVendorComment(const PRUnichar* aComment)
nsHTTPHandler::nsHTTPHandler():
mAcceptLanguages(nsnull),
mCheckForProxy(PR_FALSE),
mDoKeepAlive(PR_FALSE),
mReferrerLevel(0)
{
@ -1026,14 +1027,6 @@ nsHTTPHandler::PrefsChanged(const char* pref)
#endif
}
if (bChangedAll || !PL_strcmp(pref, "network.proxy.type"))
{
PRInt32 type = -1;
rv = mPrefs->GetIntPref("network.proxy.type",&type);
if (NS_SUCCEEDED(rv))
mCheckForProxy = (type != 0);
}
// Things read only during initialization...
if (bChangedAll) // intl.accept_languages
{

Просмотреть файл

@ -104,7 +104,6 @@ protected:
char* mAcceptLanguages;
nsAuthEngine mAuthEngine;
PRBool mCheckForProxy;
PRBool mDoKeepAlive;
nsCOMPtr<nsIPref> mPrefs;
nsCOMPtr<nsIProtocolProxyService> mProxySvc;