| Index: third_party/WebKit/Source/core/fetch/ImageResourceObserver.h
|
| diff --git a/third_party/WebKit/Source/core/fetch/ImageResourceClient.h b/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h
|
| similarity index 78%
|
| rename from third_party/WebKit/Source/core/fetch/ImageResourceClient.h
|
| rename to third_party/WebKit/Source/core/fetch/ImageResourceObserver.h
|
| index 46e407cb5a023f80b4aaae1c5ae19b63f4689391..3a492b8482d688cadf02865ffbfa125052f4f56d 100644
|
| --- a/third_party/WebKit/Source/core/fetch/ImageResourceClient.h
|
| +++ b/third_party/WebKit/Source/core/fetch/ImageResourceObserver.h
|
| @@ -20,23 +20,21 @@
|
| Boston, MA 02110-1301, USA.
|
| */
|
|
|
| -#ifndef ImageResourceClient_h
|
| -#define ImageResourceClient_h
|
| +#ifndef ImageResourceObserver_h
|
| +#define ImageResourceObserver_h
|
|
|
| #include "core/CoreExport.h"
|
| -#include "core/fetch/ResourceClient.h"
|
| #include "platform/graphics/ImageAnimationPolicy.h"
|
| +#include "platform/network/ResourceLoadPriority.h"
|
|
|
| namespace blink {
|
|
|
| class ImageResource;
|
| class IntRect;
|
|
|
| -class CORE_EXPORT ImageResourceClient : public ResourceClient {
|
| +class CORE_EXPORT ImageResourceObserver {
|
| public:
|
| - ~ImageResourceClient() override {}
|
| - static ResourceClientType expectedType() { return ImageType; }
|
| - ResourceClientType resourceClientType() const final { return expectedType(); }
|
| + virtual ~ImageResourceObserver() {}
|
|
|
| // Called whenever a frame of an image changes, either because we got more data from the network or
|
| // because we are animating. If not null, the IntRect is the changed rect of the image.
|
| @@ -46,10 +44,12 @@ public:
|
| // can halt animation. Content nodes that hold image refs for example would not render the image,
|
| // but LayoutImages would (assuming they have visibility: visible and their layout tree isn't hidden
|
| // e.g., in the b/f cache or in a background tab).
|
| - virtual bool willRenderImage(ImageResource*) { return false; }
|
| + virtual bool willRenderImage() { return false; }
|
|
|
| // Called to get imageAnimation policy from settings
|
| - virtual bool getImageAnimationPolicy(ImageResource*, ImageAnimationPolicy&) { return false; }
|
| + virtual bool getImageAnimationPolicy(ImageAnimationPolicy&) { return false; }
|
| +
|
| + virtual ResourcePriority computeResourcePriority() const { return ResourcePriority(); }
|
| };
|
|
|
| } // namespace blink
|
|
|