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

Unified Diff: third_party/WebKit/Source/core/fetch/ImageResourceContent.h

Issue 2527353002: Phase II Step 3: Reload LoFi/placeholder images via new ImageResource
Patch Set: tests 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/fetch/ImageResourceContent.h
diff --git a/third_party/WebKit/Source/core/fetch/ImageResourceContent.h b/third_party/WebKit/Source/core/fetch/ImageResourceContent.h
index 15b2bd9841082de580d7905f86cb5420ec7342d1..cf47c4c2c144fa36f93f512015be1c65cae3402c 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResourceContent.h
+++ b/third_party/WebKit/Source/core/fetch/ImageResourceContent.h
@@ -21,6 +21,7 @@
namespace blink {
class FetchRequest;
+class ImageResource;
class ImageResourceInfo;
class ImageResourceObserver;
class ResourceError;
@@ -107,7 +108,8 @@ class CORE_EXPORT ImageResourceContent final
enum ClearImageOption { ClearExistingImage, KeepExistingImage };
void updateImage(PassRefPtr<SharedBuffer>,
ClearImageOption,
- bool allDataReceived);
+ bool allDataReceived,
+ ResourceFetcher* fetcherForReload);
ResourcePriority priorityFromObservers() const;
void destroyDecodedData();
bool hasObservers() const {
@@ -121,6 +123,9 @@ class CORE_EXPORT ImageResourceContent final
}
void doResetAnimation();
+ // Only for tests.
+ ImageResource* resourceForTest() const;
+
private:
ImageResourceContent(PassRefPtr<blink::Image> = nullptr);

Powered by Google App Engine
This is Rietveld 408576698