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

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

Issue 2826213003: Don't lower priority for scripts inserted by doc.write (Closed)
Patch Set: Fixed duplicate URLs in Layout test Created 3 years, 8 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 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;

Powered by Google App Engine
This is Rietveld 408576698