Bug 1198387 - Remove use-cache preference and its references. r=mcmanus

This commit is contained in:
Kalpesh Krishna 2015-09-01 01:09:00 -04:00
Родитель 051b2f9483
Коммит 180a94bf7c
4 изменённых файлов: 0 добавлений и 17 удалений

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

@ -1252,9 +1252,6 @@ pref("network.http.proxy.version", "1.1"); // default
// pref("network.http.proxy.version", "1.0"); // uncomment this out in case of problems
// (required if using junkbuster proxy)
// enable caching of http documents
pref("network.http.use-cache", true);
// this preference can be set to override the socket type used for normal
// HTTP traffic. an empty value indicates the normal TCP/IP socket type.
pref("network.http.default-socket-type", "");

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

@ -416,10 +416,6 @@ nsHttpChannel::Connect()
return NS_ERROR_DOCUMENT_NOT_CACHED;
}
if (!gHttpHandler->UseCache()) {
return ContinueConnect();
}
// open a cache entry for this channel...
rv = OpenCacheEntry(isHttps);

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

@ -174,7 +174,6 @@ nsHttpHandler::nsHttpHandler()
, mProduct("Gecko")
, mCompatFirefoxEnabled(false)
, mUserAgentIsDirty(true)
, mUseCache(true)
, mPromptTempRedirect(true)
, mSendSecureXSiteReferrer(true)
, mEnablePersistentHttpsCaching(false)
@ -1154,13 +1153,6 @@ nsHttpHandler::PrefsChanged(nsIPrefBranch *prefs, const char *pref)
SetAcceptEncodings(acceptEncodings);
}
if (PREF_CHANGED(HTTP_PREF("use-cache"))) {
rv = prefs->GetBoolPref(HTTP_PREF("use-cache"), &cVar);
if (NS_SUCCEEDED(rv)) {
mUseCache = cVar;
}
}
if (PREF_CHANGED(HTTP_PREF("default-socket-type"))) {
nsXPIDLCString sval;
rv = prefs->GetCharPref(HTTP_PREF("default-socket-type"),

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

@ -167,7 +167,6 @@ public:
nsHttpConnectionMgr *ConnMgr() { return mConnMgr; }
// cache support
bool UseCache() const { return mUseCache; }
uint32_t GenerateUniqueID() { return ++mLastUniqueID; }
uint32_t SessionStartTime() { return mSessionStartTime; }
@ -458,7 +457,6 @@ private:
nsXPIDLCString mUserAgentOverride;
bool mUserAgentIsDirty; // true if mUserAgent should be rebuilt
bool mUseCache;
bool mPromptTempRedirect;
// mSendSecureXSiteReferrer: default is false,