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

Unified Diff: third_party/WebKit/Source/core/fetch/ImageResource.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/core/fetch/ImageResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.cpp b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
index 557b9d9dac54797a8a0129572f4eec8257712728..52c5fb9e69ece10954040caaf8ae962bd2eaff84 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.cpp
@@ -36,6 +36,7 @@
#include "platform/TraceEvent.h"
#include "platform/graphics/BitmapImage.h"
#include "public/platform/Platform.h"
+#include "public/platform/WebCachePolicy.h"
#include "wtf/CheckedNumeric.h"
#include "wtf/CurrentTime.h"
#include "wtf/StdLibExtras.h"
@@ -506,7 +507,7 @@ void ImageResource::reloadIfLoFi(ResourceFetcher* fetcher)
{
if (!m_response.httpHeaderField("chrome-proxy").contains("q=low"))
return;
- m_resourceRequest.setCachePolicy(ResourceRequestCachePolicy::BypassingCache);
+ m_resourceRequest.setCachePolicy(WebCachePolicy::BypassingCache);
m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff);
error(Resource::LoadError);
load(fetcher);
« no previous file with comments | « third_party/WebKit/Source/core/fetch/FetchContext.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698