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

Unified Diff: third_party/WebKit/Source/platform/exported/WebURLRequest.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/exported/WebURLRequest.cpp
diff --git a/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp b/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
index b0f0327ae3544e65dfa570ab8aed0a517dd42996..c2592d8268e356a8ebb8b167b6d00091f346cc0f 100644
--- a/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
+++ b/third_party/WebKit/Source/platform/exported/WebURLRequest.cpp
@@ -32,6 +32,7 @@
#include "platform/exported/WebURLRequestPrivate.h"
#include "platform/network/ResourceRequest.h"
+#include "public/platform/WebCachePolicy.h"
#include "public/platform/WebHTTPBody.h"
#include "public/platform/WebHTTPHeaderVisitor.h"
#include "public/platform/WebSecurityOrigin.h"
@@ -147,16 +148,14 @@ void WebURLRequest::setAllowStoredCredentials(bool allowStoredCredentials)
m_private->m_resourceRequest->setAllowStoredCredentials(allowStoredCredentials);
}
-WebURLRequest::CachePolicy WebURLRequest::getCachePolicy() const
+WebCachePolicy WebURLRequest::getCachePolicy() const
{
- return static_cast<WebURLRequest::CachePolicy>(
- m_private->m_resourceRequest->getCachePolicy());
+ return m_private->m_resourceRequest->getCachePolicy();
}
-void WebURLRequest::setCachePolicy(CachePolicy cachePolicy)
+void WebURLRequest::setCachePolicy(WebCachePolicy cachePolicy)
{
- m_private->m_resourceRequest->setCachePolicy(
- static_cast<ResourceRequestCachePolicy>(cachePolicy));
+ m_private->m_resourceRequest->setCachePolicy(cachePolicy);
}
WebString WebURLRequest::httpMethod() const

Powered by Google App Engine
This is Rietveld 408576698