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

Side by Side Diff: third_party/WebKit/Source/core/loader/resource/ImageResourceInfo.h

Issue 2638383008: Temporarily introduce ImageResourceInfo::setIsPlaceholder() (Closed)
Patch Set: Rebase Created 3 years, 10 months 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
« no previous file with comments | « third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698