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

Unified Diff: Source/core/html/parser/CSSPreloadScanner.h

Issue 457413002: Defer late and async scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Lower priorities for late/async scripts Created 6 years, 4 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
« no previous file with comments | « Source/core/fetch/ResourceLoadPriorityOptimizer.cpp ('k') | Source/core/html/parser/CSSPreloadScanner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/CSSPreloadScanner.h
diff --git a/Source/core/html/parser/CSSPreloadScanner.h b/Source/core/html/parser/CSSPreloadScanner.h
index f10004057bfc74b7b4fa8b6d333634b2a627436a..f57aeeefd23a2c921e25fedc32eb55b03922287c 100644
--- a/Source/core/html/parser/CSSPreloadScanner.h
+++ b/Source/core/html/parser/CSSPreloadScanner.h
@@ -45,6 +45,7 @@ public:
void scan(const HTMLToken::DataVector&, const SegmentedString&, PreloadRequestStream&);
void scan(const String&, const SegmentedString&, PreloadRequestStream&);
+ void setIsBeforeBody(const bool isBeforeBody) { m_isBeforeBody = isBeforeBody; }
private:
enum State {
@@ -69,6 +70,7 @@ private:
State m_state;
StringBuilder m_rule;
StringBuilder m_ruleValue;
+ bool m_isBeforeBody;
// Only non-zero during scan()
PreloadRequestStream* m_requests;
« no previous file with comments | « Source/core/fetch/ResourceLoadPriorityOptimizer.cpp ('k') | Source/core/html/parser/CSSPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698