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 14 matching lines...) Expand all Loading... |
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 IsSchedulingReload() const = 0; | 31 virtual bool IsSchedulingReload() const = 0; |
32 virtual bool HasDevicePixelRatioHeaderValue() const = 0; | 32 virtual bool HasDevicePixelRatioHeaderValue() const = 0; |
33 virtual float DevicePixelRatioHeaderValue() const = 0; | 33 virtual float DevicePixelRatioHeaderValue() const = 0; |
34 virtual const ResourceResponse& GetResponse() const = 0; | 34 virtual const ResourceResponse& GetResponse() const = 0; |
35 virtual ResourceStatus GetStatus() const = 0; | |
36 virtual bool ShouldShowPlaceholder() const = 0; | 35 virtual bool ShouldShowPlaceholder() const = 0; |
37 virtual bool IsCacheValidator() const = 0; | 36 virtual bool IsCacheValidator() const = 0; |
38 virtual bool SchedulingReloadOrShouldReloadBrokenPlaceholder() const = 0; | 37 virtual bool SchedulingReloadOrShouldReloadBrokenPlaceholder() const = 0; |
39 enum DoesCurrentFrameHaveSingleSecurityOrigin { | 38 enum DoesCurrentFrameHaveSingleSecurityOrigin { |
40 kHasMultipleSecurityOrigin, | 39 kHasMultipleSecurityOrigin, |
41 kHasSingleSecurityOrigin | 40 kHasSingleSecurityOrigin |
42 }; | 41 }; |
43 virtual bool IsAccessAllowed( | 42 virtual bool IsAccessAllowed( |
44 SecurityOrigin*, | 43 SecurityOrigin*, |
45 DoesCurrentFrameHaveSingleSecurityOrigin) const = 0; | 44 DoesCurrentFrameHaveSingleSecurityOrigin) const = 0; |
(...skipping 12 matching lines...) Expand all Loading... |
58 ResourceFetcher*, | 57 ResourceFetcher*, |
59 const KURL&, | 58 const KURL&, |
60 const AtomicString& initiator_name) = 0; | 59 const AtomicString& initiator_name) = 0; |
61 | 60 |
62 DEFINE_INLINE_VIRTUAL_TRACE() {} | 61 DEFINE_INLINE_VIRTUAL_TRACE() {} |
63 }; | 62 }; |
64 | 63 |
65 } // namespace blink | 64 } // namespace blink |
66 | 65 |
67 #endif | 66 #endif |
OLD | NEW |