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

Unified Diff: third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h

Issue 2527353002: Phase II Step 3: Reload LoFi/placeholder images via new ImageResource
Patch Set: reloadLoFiImages test Created 4 years 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/loader/resource/ImageResourceContent.h
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h b/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
index 8d18c4424237690ca5679a420384adcb8e3ed474..29408abba2543634adbe10ef8aeca9d42616cec2 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResourceContent.h
@@ -22,6 +22,7 @@
namespace blink {
class FetchRequest;
+class ImageResource;
class ImageResourceInfo;
class ImageResourceObserver;
class ResourceError;
@@ -124,7 +125,8 @@ class CORE_EXPORT ImageResourceContent final
};
void updateImage(PassRefPtr<SharedBuffer>,
UpdateImageOption,
- bool allDataReceived);
+ bool allDataReceived,
+ ResourceFetcher* fetcherForReload);
ResourcePriority priorityFromObservers() const;
void destroyDecodedData();
void doResetAnimation();
@@ -137,6 +139,9 @@ class CORE_EXPORT ImageResourceContent final
return m_isRefetchableDataFromDiskCache;
}
+ // Only for tests.
+ const ImageResource* resourceForTest() const;
Nate Chapin 2016/12/28 00:14:58 This is a pretty bad layering violation, right? Bu
hiroshige 2017/01/25 02:01:49 Yes, bad violation. This is currently needed for t
+
private:
explicit ImageResourceContent(PassRefPtr<blink::Image> = nullptr);

Powered by Google App Engine
This is Rietveld 408576698