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

Unified Diff: content/child/web_url_request_util.cc

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 | « chrome/renderer/net/net_error_helper.cc ('k') | content/public/renderer/resource_fetcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_request_util.cc
diff --git a/content/child/web_url_request_util.cc b/content/child/web_url_request_util.cc
index bae840b502e4a23a3e93e3544545be34cea6f804..5f14fbb4d9a753d6afcd2d415a783a5b41995728 100644
--- a/content/child/web_url_request_util.cc
+++ b/content/child/web_url_request_util.cc
@@ -14,12 +14,14 @@
#include "net/base/load_flags.h"
#include "net/base/net_errors.h"
#include "third_party/WebKit/public/platform/FilePathConversion.h"
+#include "third_party/WebKit/public/platform/WebCachePolicy.h"
#include "third_party/WebKit/public/platform/WebHTTPHeaderVisitor.h"
#include "third_party/WebKit/public/platform/WebString.h"
#include "third_party/WebKit/public/platform/WebURL.h"
#include "third_party/WebKit/public/platform/WebURLError.h"
#include "third_party/WebKit/public/platform/WebURLRequest.h"
+using blink::WebCachePolicy;
using blink::WebHTTPBody;
using blink::WebString;
using blink::WebURLRequest;
@@ -186,19 +188,19 @@ int GetLoadFlagsForWebURLRequest(const blink::WebURLRequest& request) {
int load_flags = net::LOAD_NORMAL;
GURL url = request.url();
switch (request.getCachePolicy()) {
- case WebURLRequest::ValidatingCacheData:
+ case WebCachePolicy::ValidatingCacheData:
load_flags |= net::LOAD_VALIDATE_CACHE;
break;
- case WebURLRequest::BypassingCache:
+ case WebCachePolicy::BypassingCache:
load_flags |= net::LOAD_BYPASS_CACHE;
break;
- case WebURLRequest::ReturnCacheDataElseLoad:
+ case WebCachePolicy::ReturnCacheDataElseLoad:
load_flags |= net::LOAD_PREFERRING_CACHE;
break;
- case WebURLRequest::ReturnCacheDataDontLoad:
+ case WebCachePolicy::ReturnCacheDataDontLoad:
load_flags |= net::LOAD_ONLY_FROM_CACHE;
break;
- case WebURLRequest::UseProtocolCachePolicy:
+ case WebCachePolicy::UseProtocolCachePolicy:
break;
default:
NOTREACHED();
« no previous file with comments | « chrome/renderer/net/net_error_helper.cc ('k') | content/public/renderer/resource_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698