| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 virtual bool isAccessAllowed( | 43 virtual bool isAccessAllowed( |
| 44 SecurityOrigin*, | 44 SecurityOrigin*, |
| 45 DoesCurrentFrameHaveSingleSecurityOrigin) const = 0; | 45 DoesCurrentFrameHaveSingleSecurityOrigin) const = 0; |
| 46 virtual bool hasCacheControlNoStoreHeader() const = 0; | 46 virtual bool hasCacheControlNoStoreHeader() const = 0; |
| 47 virtual const ResourceError& resourceError() const = 0; | 47 virtual const ResourceError& resourceError() const = 0; |
| 48 | 48 |
| 49 // Like Resource::error(), decodeError() makes corresponding ImageResource | 49 // Like Resource::error(), decodeError() makes corresponding ImageResource |
| 50 // (if any) DecodeError and finishes loading. | 50 // (if any) DecodeError and finishes loading. |
| 51 virtual void decodeError(bool allDataReceived) = 0; | 51 virtual void decodeError(bool allDataReceived) = 0; |
| 52 | 52 |
| 53 // TODO(hiroshige): Remove this. |
| 54 virtual void setIsPlaceholder(bool) = 0; |
| 55 |
| 53 // TODO(hiroshige): Remove this once MemoryCache becomes further weaker. | 56 // TODO(hiroshige): Remove this once MemoryCache becomes further weaker. |
| 54 virtual void setDecodedSize(size_t) = 0; | 57 virtual void setDecodedSize(size_t) = 0; |
| 55 | 58 |
| 56 // TODO(hiroshige): Remove these. | 59 // TODO(hiroshige): Remove these. |
| 57 virtual void willAddClientOrObserver() = 0; | 60 virtual void willAddClientOrObserver() = 0; |
| 58 virtual void didRemoveClientOrObserver() = 0; | 61 virtual void didRemoveClientOrObserver() = 0; |
| 59 | 62 |
| 60 // TODO(hiroshige): Remove this. crbug.com/666214 | 63 // TODO(hiroshige): Remove this. crbug.com/666214 |
| 61 virtual void emulateLoadStartedForInspector( | 64 virtual void emulateLoadStartedForInspector( |
| 62 ResourceFetcher*, | 65 ResourceFetcher*, |
| 63 const KURL&, | 66 const KURL&, |
| 64 const AtomicString& initiatorName) = 0; | 67 const AtomicString& initiatorName) = 0; |
| 65 | 68 |
| 66 DEFINE_INLINE_VIRTUAL_TRACE() {} | 69 DEFINE_INLINE_VIRTUAL_TRACE() {} |
| 67 }; | 70 }; |
| 68 | 71 |
| 69 } // namespace blink | 72 } // namespace blink |
| 70 | 73 |
| 71 #endif | 74 #endif |
| OLD | NEW |