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

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

Issue 2487763003: [ImageLoader 2d] Set DecodeError by calling ResourceLoader::cancel()
Patch Set: Rebase Created 4 years, 1 month 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/ImageResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.h b/third_party/WebKit/Source/core/fetch/ImageResource.h
index 33bf7f4c4f5a225c24601369c9aa9fad6d563c74..559a30729b1f2ca7c0deced3b4439d52601d553e 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.h
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.h
@@ -130,7 +130,7 @@ class CORE_EXPORT ImageResource final
PassRefPtr<const SharedBuffer> resourceBuffer() const override;
void appendData(const char*, size_t) override;
- void error(const ResourceError&) override;
+ void error(const ResourceError&, Status errorStatus) override;
void responseReceived(const ResourceResponse&,
std::unique_ptr<WebDataConsumerHandle>) override;
void finish(double finishTime = 0.0) override;
@@ -181,6 +181,8 @@ class CORE_EXPORT ImageResource final
}
void clear();
+ void decodeError();
+
void createImage();
void updateImage(bool allDataReceived);
void updateImageAndClearBuffer();
« no previous file with comments | « third_party/WebKit/Source/core/fetch/FetchContext.cpp ('k') | third_party/WebKit/Source/core/fetch/ImageResource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698