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 5ce1490f84445419bc3057578565c67f44179803..cecfccbfa273fe2d63fabc23d62441b91ff2c371 100644 |
--- a/third_party/WebKit/Source/core/html/parser/PreloadRequest.h |
+++ b/third_party/WebKit/Source/core/html/parser/PreloadRequest.h |
@@ -98,6 +98,9 @@ class CORE_EXPORT PreloadRequest { |
const IntegrityMetadataSet& IntegrityMetadata() const { |
return integrity_metadata_; |
} |
+ void SetFromInsertionScanner(const bool from_insertion_scanner) { |
+ from_insertion_scanner_ = from_insertion_scanner; |
+ } |
private: |
PreloadRequest(const String& initiator_name, |
@@ -122,7 +125,8 @@ class CORE_EXPORT PreloadRequest { |
client_hints_preferences_(client_hints_preferences), |
request_type_(request_type), |
referrer_policy_(referrer_policy), |
- referrer_source_(referrer_source) {} |
+ referrer_source_(referrer_source), |
+ from_insertion_scanner_(false) {} |
KURL CompleteURL(Document*); |
@@ -142,6 +146,7 @@ class CORE_EXPORT PreloadRequest { |
ReferrerPolicy referrer_policy_; |
ReferrerSource referrer_source_; |
IntegrityMetadataSet integrity_metadata_; |
+ bool from_insertion_scanner_; |
}; |
typedef Vector<std::unique_ptr<PreloadRequest>> PreloadRequestStream; |