 Chromium Code Reviews
 Chromium Code Reviews Issue 2469873002:
  [ImageResource 4] Split ImageResource into Resource and Image parts  (Closed)
    
  
    Issue 2469873002:
  [ImageResource 4] Split ImageResource into Resource and Image parts  (Closed) 
  | OLD | NEW | 
|---|---|
| (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 | |
| OLD | NEW |