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); |