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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.h

Issue 2407573002: Wait to notify completion until after a Lo-Fi image is reloaded. (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index a8066ef6e97e8cb0c18a6bd1a3447aa9b2043f2c..7319eeab11100a7ab0bf0ed811da14a6a94a50da 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -374,6 +374,16 @@ class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
: AutoReset(&resource->m_isAddRemoveClientProhibited, true) {}
};
+ class ProhibitNotifyClientsOfCompletionInScope : public AutoReset<bool> {
+ public:
+ ProhibitNotifyClientsOfCompletionInScope(Resource* resource)
+ : AutoReset(&resource->m_isNotifyClientsOfCompletionProhibited, true) {}
+ };
+
+ bool isNotifyClientsOfCompletionProhibited() const {
+ return m_isNotifyClientsOfCompletionProhibited;
+ }
+
private:
class ResourceCallback;
class CachedMetadataHandlerImpl;
@@ -429,6 +439,8 @@ class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
bool m_isAddRemoveClientProhibited;
+ bool m_isNotifyClientsOfCompletionProhibited;
+
// Ordered list of all redirects followed while fetching this resource.
Vector<RedirectPair> m_redirectChain;

Powered by Google App Engine
This is Rietveld 408576698