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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/Resource.h

Issue 2706303002: Check whether ScriptResource is still loading due to revalidation (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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/loader/fetch/Resource.h
diff --git a/third_party/WebKit/Source/platform/loader/fetch/Resource.h b/third_party/WebKit/Source/platform/loader/fetch/Resource.h
index c17ba2668ab21b70ed5a35087fa6960b96bc487a..26e6b974999f1c1eab1e0e2335727232860a6df7 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/Resource.h
+++ b/third_party/WebKit/Source/platform/loader/fetch/Resource.h
@@ -266,6 +266,9 @@ class PLATFORM_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
bool hasCacheControlNoStoreHeader() const;
bool mustReloadDueToVaryHeader(const ResourceRequest& newRequest) const;
+ // For investigating https://crbug.com/692856.
+ bool hasRevalidated() const { return m_hasRevalidated; }
+
bool isEligibleForIntegrityCheck(SecurityOrigin*) const;
void setIntegrityMetadata(const IntegrityMetadataSet& metadata) {
@@ -459,6 +462,12 @@ class PLATFORM_EXPORT Resource : public GarbageCollectedFinalized<Resource>,
bool m_needsSynchronousCacheHit;
bool m_linkPreload;
bool m_isRevalidating;
+
+ // For investigating https://crbug.com/692856.
+ // Indicates whether at least one revalidation is done for |this|.
+ // Used for assertions only.
+ bool m_hasRevalidated = false;
+
bool m_isAlive;
bool m_isAddRemoveClientProhibited;
bool m_isRevalidationStartForbidden = false;

Powered by Google App Engine
This is Rietveld 408576698