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

Unified Diff: third_party/WebKit/public/platform/WebURLRequest.h

Issue 1858533002: Introduce WebCachePolicy to merge cache policy enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: self review, minor fixes 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/public/platform/WebURLRequest.h
diff --git a/third_party/WebKit/public/platform/WebURLRequest.h b/third_party/WebKit/public/platform/WebURLRequest.h
index f661d7883ebe089deb90621c09da7b6ddf92e15b..833af1914f271d43c83b4822456f30fb98fa3438 100644
--- a/third_party/WebKit/public/platform/WebURLRequest.h
+++ b/third_party/WebKit/public/platform/WebURLRequest.h
@@ -45,19 +45,10 @@ class WebSecurityOrigin;
class WebString;
class WebURL;
class WebURLRequestPrivate;
+enum class WebCachePolicy;
class WebURLRequest {
public:
- // Should be same with ResourceRequestCachePolicy.
- // TODO(crbug.com/599364): Merge this with ResourceRequestCachePolicy.
- enum CachePolicy {
- UseProtocolCachePolicy, // normal load
- ValidatingCacheData, // reload
- BypassingCache, // end-to-end reload
- ReturnCacheDataElseLoad, // back/forward or encoding change - allow stale data
- ReturnCacheDataDontLoad, // results of a post - allow stale data and only use cache
- };
-
enum Priority {
PriorityUnresolved = -1,
PriorityVeryLow,
@@ -193,8 +184,8 @@ public:
BLINK_PLATFORM_EXPORT bool allowStoredCredentials() const;
BLINK_PLATFORM_EXPORT void setAllowStoredCredentials(bool);
- BLINK_PLATFORM_EXPORT CachePolicy getCachePolicy() const;
- BLINK_PLATFORM_EXPORT void setCachePolicy(CachePolicy);
+ BLINK_PLATFORM_EXPORT WebCachePolicy getCachePolicy() const;
+ BLINK_PLATFORM_EXPORT void setCachePolicy(WebCachePolicy);
BLINK_PLATFORM_EXPORT WebString httpMethod() const;
BLINK_PLATFORM_EXPORT void setHTTPMethod(const WebString&);

Powered by Google App Engine
This is Rietveld 408576698