| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ImageResourceInfo_h | 5 #ifndef ImageResourceInfo_h |
| 6 #define ImageResourceInfo_h | 6 #define ImageResourceInfo_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
| 10 #include "platform/heap/Heap.h" | 10 #include "platform/heap/Heap.h" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Do not add new members or new call sites unless really needed. | 24 // Do not add new members or new call sites unless really needed. |
| 25 // TODO(hiroshige): reduce the members of this class to further decouple | 25 // TODO(hiroshige): reduce the members of this class to further decouple |
| 26 // ImageResource and ImageResourceContent. | 26 // ImageResource and ImageResourceContent. |
| 27 class CORE_EXPORT ImageResourceInfo : public GarbageCollectedMixin { | 27 class CORE_EXPORT ImageResourceInfo : public GarbageCollectedMixin { |
| 28 public: | 28 public: |
| 29 ~ImageResourceInfo() {} | 29 ~ImageResourceInfo() {} |
| 30 virtual const KURL& url() const = 0; | 30 virtual const KURL& url() const = 0; |
| 31 virtual bool hasDevicePixelRatioHeaderValue() const = 0; | 31 virtual bool hasDevicePixelRatioHeaderValue() const = 0; |
| 32 virtual float devicePixelRatioHeaderValue() const = 0; | 32 virtual float devicePixelRatioHeaderValue() const = 0; |
| 33 virtual const ResourceResponse& response() const = 0; | 33 virtual const ResourceResponse& response() const = 0; |
| 34 virtual ResourceStatus getStatus() const = 0; | |
| 35 virtual bool shouldShowPlaceholder() const = 0; | 34 virtual bool shouldShowPlaceholder() const = 0; |
| 36 virtual bool isCacheValidator() const = 0; | 35 virtual bool isCacheValidator() const = 0; |
| 37 enum DoesCurrentFrameHaveSingleSecurityOrigin { | 36 enum DoesCurrentFrameHaveSingleSecurityOrigin { |
| 38 HasMultipleSecurityOrigin, | 37 HasMultipleSecurityOrigin, |
| 39 HasSingleSecurityOrigin | 38 HasSingleSecurityOrigin |
| 40 }; | 39 }; |
| 41 virtual bool isAccessAllowed( | 40 virtual bool isAccessAllowed( |
| 42 SecurityOrigin*, | 41 SecurityOrigin*, |
| 43 DoesCurrentFrameHaveSingleSecurityOrigin) const = 0; | 42 DoesCurrentFrameHaveSingleSecurityOrigin) const = 0; |
| 44 virtual bool hasCacheControlNoStoreHeader() const = 0; | 43 virtual bool hasCacheControlNoStoreHeader() const = 0; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 56 ResourceFetcher*, | 55 ResourceFetcher*, |
| 57 const KURL&, | 56 const KURL&, |
| 58 const AtomicString& initiatorName) = 0; | 57 const AtomicString& initiatorName) = 0; |
| 59 | 58 |
| 60 DEFINE_INLINE_VIRTUAL_TRACE() {} | 59 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 61 }; | 60 }; |
| 62 | 61 |
| 63 } // namespace blink | 62 } // namespace blink |
| 64 | 63 |
| 65 #endif | 64 #endif |
| OLD | NEW |