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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ImageResourceContentInterface.h

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: comments Created 4 years 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ImageResourceContentInterface_h
6 #define ImageResourceContentInterface_h
7
8 #include "core/CoreExport.h"
9 #include "platform/graphics/Image.h"
10 #include "platform/network/ResourceLoadPriority.h"
11
12 namespace blink {
13
14 class ImageResourceInfo;
15
16 // Interface of ImageResourceContent visible to ImageResource.
17 class CORE_EXPORT ImageResourceContentInterface : public GarbageCollectedMixin {
hiroshige 2016/11/30 06:46:24 I introduced ImageResourceContentInterface in the
18 public:
19 enum ClearImageOption { ClearExistingImage, KeepExistingImage };
20
21 virtual void setImageResourceInfo(ImageResourceInfo*) = 0;
22 virtual void updateImage(PassRefPtr<SharedBuffer>,
23 ClearImageOption,
24 bool allDataReceived) = 0;
25 virtual void destroyDecodedData() = 0;
26 virtual void doResetAnimation() = 0;
27
28 virtual ResourcePriority priorityFromObservers() const = 0;
29 virtual bool hasObservers() const = 0;
30 virtual bool isSizeAvailable() const = 0;
31 virtual bool isRefetchableDataFromDiskCache() const = 0;
32 virtual blink::Image* getImage() const = 0;
33 virtual bool hasImage() const = 0;
34 DEFINE_INLINE_VIRTUAL_TRACE() {}
35 };
36
37 } // namespace blink
38
39 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698