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

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: 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
« no previous file with comments | « third_party/WebKit/public/platform/WebCachePolicy.h ('k') | third_party/WebKit/public/web/WebFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 80392b806aae6f933fea2e878cbc0e930567da09..09b58183fd9e0717ee776f2f549b0cd958e33800 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,
@@ -194,8 +185,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&);
« no previous file with comments | « third_party/WebKit/public/platform/WebCachePolicy.h ('k') | third_party/WebKit/public/web/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698