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

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

Issue 2605733002: [TEST] Forbid ImageResourceContent::updateImage() reentrancy
Patch Set: Created 3 years, 11 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 | « no previous file | third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp » ('j') | 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 ImageResourceContent_h 5 #ifndef ImageResourceContent_h
6 #define ImageResourceContent_h 6 #define ImageResourceContent_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/fetch/ResourceStatus.h" 9 #include "core/fetch/ResourceStatus.h"
10 #include "platform/geometry/IntRect.h" 10 #include "platform/geometry/IntRect.h"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 RefPtr<blink::Image> m_image; 154 RefPtr<blink::Image> m_image;
155 155
156 HashCountedSet<ImageResourceObserver*> m_observers; 156 HashCountedSet<ImageResourceObserver*> m_observers;
157 HashCountedSet<ImageResourceObserver*> m_finishedObservers; 157 HashCountedSet<ImageResourceObserver*> m_finishedObservers;
158 158
159 Image::SizeAvailability m_sizeAvailable = Image::SizeUnavailable; 159 Image::SizeAvailability m_sizeAvailable = Image::SizeUnavailable;
160 160
161 // Indicates if this resource's encoded image data can be purged and refetched 161 // Indicates if this resource's encoded image data can be purged and refetched
162 // from disk cache to save memory usage. See crbug/664437. 162 // from disk cache to save memory usage. See crbug/664437.
163 bool m_isRefetchableDataFromDiskCache; 163 bool m_isRefetchableDataFromDiskCache;
164
165 bool m_isUpdateImageBeingCalled = false;
164 }; 166 };
165 167
166 } // namespace blink 168 } // namespace blink
167 169
168 #endif 170 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/resource/ImageResourceContent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698