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

Unified Diff: Source/core/fetch/ImageResource.cpp

Issue 174523002: Reland "Move MemoryCache implementation details out of Resource" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 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
« no previous file with comments | « Source/core/fetch/ImageResource.h ('k') | Source/core/fetch/MemoryCache.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/ImageResource.cpp
diff --git a/Source/core/fetch/ImageResource.cpp b/Source/core/fetch/ImageResource.cpp
index 5b8e226924158cf5b45f8baec16f7e0517b042e5..9e8cce3af46e6e387d5dcdad456656e32bb10502 100644
--- a/Source/core/fetch/ImageResource.cpp
+++ b/Source/core/fetch/ImageResource.cpp
@@ -61,6 +61,15 @@ ImageResource::ImageResource(WebCore::Image* image)
setCustomAcceptHeader();
}
+ImageResource::ImageResource(const ResourceRequest& resourceRequest, WebCore::Image* image)
+ : Resource(resourceRequest, Image)
+ , m_image(image)
+{
+ setStatus(Cached);
+ setLoading(false);
+ setCustomAcceptHeader();
+}
+
ImageResource::~ImageResource()
{
clearImage();
« no previous file with comments | « Source/core/fetch/ImageResource.h ('k') | Source/core/fetch/MemoryCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698