Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(489)

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp

Issue 1846733004: Rename IgnoringCacheData to ValidatingCacheData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 78239b0c1f4b74316ff2406ea693f356f21607cf..894dd50e170f6002e4a9503075804332a9fcab4c 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -167,9 +167,9 @@ static ResourceRequestCachePolicy memoryCachePolicyToResourceRequestCachePolicy(
if (policy == CachePolicyVerify)
return UseProtocolCachePolicy;
if (policy == CachePolicyRevalidate)
- return ReloadIgnoringCacheData;
+ return ValidatingCacheData;
if (policy == CachePolicyReload)
- return ReloadBypassingCache;
+ return BypassingCache;
if (policy == CachePolicyHistoryBuffer)
return ReturnCacheDataElseLoad;
return UseProtocolCachePolicy;
@@ -185,7 +185,7 @@ ResourceRequestCachePolicy FrameFetchContext::resourceRequestCachePolicy(const R
if (!frame()->host()->overrideEncoding().isEmpty())
return ReturnCacheDataElseLoad;
if (frameLoadType == FrameLoadTypeSame || request.isConditional() || request.httpMethod() == "POST")
- return ReloadIgnoringCacheData;
+ return ValidatingCacheData;
for (Frame* f = frame(); f; f = f->tree().parent()) {
if (!f->isLocalFrame())
@@ -194,9 +194,9 @@ ResourceRequestCachePolicy FrameFetchContext::resourceRequestCachePolicy(const R
if (frameLoadType == FrameLoadTypeBackForward)
return ReturnCacheDataElseLoad;
if (frameLoadType == FrameLoadTypeReloadFromOrigin)
- return ReloadBypassingCache;
+ return BypassingCache;
if (frameLoadType == FrameLoadTypeReload)
- return ReloadIgnoringCacheData;
+ return ValidatingCacheData;
}
return UseProtocolCachePolicy;
}
@@ -217,7 +217,7 @@ ResourceRequestCachePolicy FrameFetchContext::resourceRequestCachePolicy(const R
}
if (request.isConditional())
- return ReloadIgnoringCacheData;
+ return ValidatingCacheData;
if (m_documentLoader && m_document && !m_document->loadEventFinished()) {
// For POST requests, we mutate the main resource's cache policy to avoid form resubmission.

Powered by Google App Engine
This is Rietveld 408576698