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

Unified Diff: third_party/WebKit/Source/core/html/parser/PreloadRequest.h

Issue 2301323003: Add deprecation warning for script fetches with invalid types (Closed)
Patch Set: Update deprecation message with chromestatus entry Created 4 years, 3 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/html/parser/PreloadRequest.h
diff --git a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
index 827bbc8fb94112287e7e413f6312c194724f064e..36e2c45d1fb345c215af03f1229608dbe9471f5f 100644
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h
@@ -68,6 +68,9 @@ public:
return m_integrityMetadata;
}
+ void setScriptHasInvalidTypeOrLanguage() { m_hasInvalidTypeOrLanguage = true; }
+ bool scriptHasInvalidTypeOrLanguage() { return m_hasInvalidTypeOrLanguage; }
+
private:
PreloadRequest(const String& initiatorName,
const TextPosition& initiatorPosition,
@@ -110,6 +113,9 @@ private:
RequestType m_requestType;
ReferrerPolicy m_referrerPolicy;
IntegrityMetadataSet m_integrityMetadata;
+
+ // Used for deprecation warnings.
+ bool m_hasInvalidTypeOrLanguage = false;
};
typedef Vector<std::unique_ptr<PreloadRequest>> PreloadRequestStream;
« no previous file with comments | « third_party/WebKit/Source/core/html/parser/HTMLResourcePreloader.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698