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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.cpp

Issue 1858533002: Introduce WebCachePolicy to merge cache policy enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hiroshige review Created 4 years, 8 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/platform/network/ResourceRequest.cpp
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
index 8ab07862b0ad733e0c723ba09ff3be9f6280a39a..e2fa90ae08a0e9d6ea78701640d440be0d94d2d9 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
@@ -31,6 +31,7 @@
#include "platform/weborigin/SecurityOrigin.h"
#include "public/platform/Platform.h"
#include "public/platform/WebAddressSpace.h"
+#include "public/platform/WebCachePolicy.h"
#include "public/platform/WebURLRequest.h"
namespace blink {
@@ -149,12 +150,12 @@ void ResourceRequest::removeCredentials()
m_url.setPass(String());
}
-ResourceRequestCachePolicy ResourceRequest::getCachePolicy() const
+WebCachePolicy ResourceRequest::getCachePolicy() const
{
return m_cachePolicy;
}
-void ResourceRequest::setCachePolicy(ResourceRequestCachePolicy cachePolicy)
+void ResourceRequest::setCachePolicy(WebCachePolicy cachePolicy)
{
m_cachePolicy = cachePolicy;
}
@@ -397,7 +398,7 @@ bool ResourceRequest::hasCacheValidatorFields() const
void ResourceRequest::initialize(const KURL& url)
{
m_url = url;
- m_cachePolicy = UseProtocolCachePolicy;
+ m_cachePolicy = WebCachePolicy::UseProtocolCachePolicy;
m_timeoutInterval = s_defaultTimeoutInterval;
m_httpMethod = HTTPNames::GET;
m_allowStoredCredentials = true;

Powered by Google App Engine
This is Rietveld 408576698