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

Unified Diff: third_party/WebKit/Source/core/loader/ImageLoader.h

Issue 1706083002: Split ImageResourceClient into ResourceClient and ImageResourceObserver [1/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 9 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/core/loader/ImageLoader.h
diff --git a/third_party/WebKit/Source/core/loader/ImageLoader.h b/third_party/WebKit/Source/core/loader/ImageLoader.h
index 30ad783288affc776459c9163c7b48772ea295cd..abb6414f84a8288205bf85839ff01ec0ab02031b 100644
--- a/third_party/WebKit/Source/core/loader/ImageLoader.h
+++ b/third_party/WebKit/Source/core/loader/ImageLoader.h
@@ -25,7 +25,8 @@
#include "core/CoreExport.h"
#include "core/fetch/ImageResource.h"
-#include "core/fetch/ImageResourceClient.h"
+#include "core/fetch/ImageResourceObserver.h"
+#include "core/fetch/ResourceClient.h"
#include "platform/heap/Handle.h"
#include "wtf/HashSet.h"
#include "wtf/WeakPtr.h"
@@ -43,7 +44,7 @@ class LayoutImageResource;
template<typename T> class EventSender;
using ImageEventSender = EventSender<ImageLoader>;
-class CORE_EXPORT ImageLoader : public NoBaseWillBeGarbageCollectedFinalized<ImageLoader>, public ImageResourceClient {
+class CORE_EXPORT ImageLoader : public NoBaseWillBeGarbageCollectedFinalized<ImageLoader>, public ResourceClient, public ImageResourceObserver {
WILL_BE_USING_PRE_FINALIZER(ImageLoader, dispose);
USING_FAST_MALLOC_WILL_BE_REMOVED(ImageLoader);
public:
@@ -101,7 +102,7 @@ public:
static void dispatchPendingLoadEvents();
static void dispatchPendingErrorEvents();
- bool getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&) final;
+ bool getImageAnimationPolicy(ImageAnimationPolicy&) final;
protected:
void notifyFinished(Resource*) override;
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGImage.cpp ('k') | third_party/WebKit/Source/core/loader/ImageLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698