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

Unified Diff: content/renderer/image_downloader/image_downloader_impl.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 | « content/renderer/history_controller.cc ('k') | content/renderer/internal_document_state_data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/image_downloader/image_downloader_impl.cc
diff --git a/content/renderer/image_downloader/image_downloader_impl.cc b/content/renderer/image_downloader/image_downloader_impl.cc
index 70b8893f6aaefef644e7e251cf28bab76c77d575..421f421a927c8ca0b8ed86e0f845b158d4fe916c 100644
--- a/content/renderer/image_downloader/image_downloader_impl.cc
+++ b/content/renderer/image_downloader/image_downloader_impl.cc
@@ -26,6 +26,7 @@
#include "ui/gfx/skbitmap_operations.h"
#include "url/url_constants.h"
+using blink::WebCachePolicy;
using blink::WebFrame;
using blink::WebVector;
using blink::WebURL;
@@ -176,8 +177,8 @@ bool ImageDownloaderImpl::FetchImage(const GURL& image_url,
image_fetchers_.push_back(new MultiResolutionImageResourceFetcher(
image_url, frame, 0, is_favicon ? WebURLRequest::RequestContextFavicon
: WebURLRequest::RequestContextImage,
- bypass_cache ? WebURLRequest::BypassingCache
- : WebURLRequest::UseProtocolCachePolicy,
+ bypass_cache ? WebCachePolicy::BypassingCache
+ : WebCachePolicy::UseProtocolCachePolicy,
base::Bind(&ImageDownloaderImpl::DidFetchImage, base::Unretained(this),
max_image_size, callback)));
return true;
« no previous file with comments | « content/renderer/history_controller.cc ('k') | content/renderer/internal_document_state_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698