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

Unified Diff: third_party/WebKit/Source/platform/graphics/BitmapImage.h

Issue 2173873003: Cancel image loads if decoding failed (attempt #2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix UAF Created 4 years, 5 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
Index: third_party/WebKit/Source/platform/graphics/BitmapImage.h
diff --git a/third_party/WebKit/Source/platform/graphics/BitmapImage.h b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
index 590b1998789e138e99803d3bea74e7609a0da24e..68d1a1ef82abebd641376ca405a49e0c30ed7fe3 100644
--- a/third_party/WebKit/Source/platform/graphics/BitmapImage.h
+++ b/third_party/WebKit/Source/platform/graphics/BitmapImage.h
@@ -65,8 +65,9 @@ public:
IntSize sizeRespectingOrientation() const;
bool getHotSpot(IntPoint&) const override;
String filenameExtension() const override;
- bool setData(PassRefPtr<SharedBuffer> data, bool allDataReceived) override;
- bool dataChanged(bool allDataReceived) override;
+
+ SizeAvailability setData(PassRefPtr<SharedBuffer> data, bool allDataReceived) override;
+ SizeAvailability dataChanged(bool allDataReceived) override;
bool isAllDataReceived() const { return m_allDataReceived; }
bool hasColorProfile() const;
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebImage.cpp ('k') | third_party/WebKit/Source/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698