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

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

Issue 2607623002: Introduce RevalidationStartForbiddenScope (Closed)
Patch Set: Created 4 years 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 352ce25abc39b03f3d2216c0659e11129eb97ec2..afa7d880e4dfa45fef40abb042186cdb89fafd18 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -416,6 +416,12 @@ class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
: AutoReset(&resource->m_isAddRemoveClientProhibited, true) {}
};
+ class RevalidationStartForbiddenScope : public AutoReset<bool> {
+ public:
+ RevalidationStartForbiddenScope(Resource* resource)
+ : AutoReset(&resource->m_isRevalidationStartForbidden, true) {}
+ };
+
private:
class ResourceCallback;
class CachedMetadataHandlerImpl;
@@ -467,6 +473,7 @@ class CORE_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
bool m_isRevalidating;
bool m_isAlive;
bool m_isAddRemoveClientProhibited;
+ bool m_isRevalidationStartForbidden = false;
ResourceIntegrityDisposition m_integrityDisposition;
IntegrityMetadataSet m_integrityMetadata;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/RawResource.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698