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

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

Issue 2573523002: Rename request() method to getRequest(). (Closed)
Patch Set: Fixing a mistake I've made in USBDevice.cpp Created 4 years 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 4682c6d8066a059b8ef8207d1b81bce646086a02..a355e5ee3b43147e66cd72f6c33a36d593bc11da 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -282,7 +282,7 @@ CachePolicy FrameFetchContext::getCachePolicy() const {
return CachePolicyRevalidate;
if (m_documentLoader &&
- m_documentLoader->request().getCachePolicy() ==
+ m_documentLoader->getRequest().getCachePolicy() ==
WebCachePolicy::ReturnCacheDataElseLoad)
return CachePolicyHistoryBuffer;
@@ -351,8 +351,8 @@ WebCachePolicy FrameFetchContext::resourceRequestCachePolicy(
// For POST requests, we mutate the main resource's cache policy to avoid
// form resubmission. This policy should not be inherited by subresources.
WebCachePolicy mainResourceCachePolicy =
- m_documentLoader->request().getCachePolicy();
- if (m_documentLoader->request().httpMethod() == "POST") {
+ m_documentLoader->getRequest().getCachePolicy();
+ if (m_documentLoader->getRequest().httpMethod() == "POST") {
if (mainResourceCachePolicy == WebCachePolicy::ReturnCacheDataDontLoad)
return WebCachePolicy::ReturnCacheDataElseLoad;
return WebCachePolicy::UseProtocolCachePolicy;

Powered by Google App Engine
This is Rietveld 408576698