| 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;
|
|
|
|
|