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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageSource.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/ImageSource.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.h b/third_party/WebKit/Source/platform/graphics/ImageSource.h
index 73bdb7ee103c2ecea92bdd52df9934b647b40457..d813c085e9a4557ab19b92b8b649b2a1e57fa4e0 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.h
@@ -27,6 +27,7 @@
#define ImageSource_h
#include "platform/PlatformExport.h"
+#include "platform/graphics/DeferredImageDecoder.h"
#include "platform/graphics/ImageOrientation.h"
#include "wtf/Forward.h"
#include "wtf/Noncopyable.h"
@@ -36,7 +37,6 @@ class SkImage;
namespace blink {
-class DeferredImageDecoder;
class ImageOrientation;
class IntPoint;
class IntSize;
@@ -70,7 +70,7 @@ public:
size_t clearCacheExceptFrame(size_t);
PassRefPtr<SharedBuffer> data();
- void setData(SharedBuffer& data, bool allDataReceived);
+ ImageDecoder::SniffResult setData(SharedBuffer& data, bool allDataReceived);
String filenameExtension() const;
bool isSizeAvailable();

Powered by Google App Engine
This is Rietveld 408576698