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

Unified Diff: Source/core/fetch/FetchRequest.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/dom/ScriptLoader.cpp ('k') | Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/fetch/FetchRequest.h
diff --git a/Source/core/fetch/FetchRequest.h b/Source/core/fetch/FetchRequest.h
index 7117fc92e04adb0b012573071d77bb7cb843d685..99ec0c7923c3dad9d876e5ef419fcec35b541330 100644
--- a/Source/core/fetch/FetchRequest.h
+++ b/Source/core/fetch/FetchRequest.h
@@ -56,6 +56,10 @@ public:
ResourceLoadPriority priority() const { return m_priority; }
bool forPreload() const { return m_forPreload; }
void setForPreload(bool forPreload) { m_forPreload = forPreload; }
+ bool isBeforeBody() const { return m_isBeforeBody; }
+ void setIsBeforeBody(bool isBeforeBody) { m_isBeforeBody = isBeforeBody; }
+ bool execAsync() const { return m_execAsync; }
+ void setExecAsync(bool execAsync) { m_execAsync = execAsync; }
DeferOption defer() const { return m_defer; }
void setDefer(DeferOption defer) { m_defer = defer; }
void setContentSecurityCheck(ContentSecurityPolicyCheck contentSecurityPolicyOption) { m_options.contentSecurityPolicyOption = contentSecurityPolicyOption; }
@@ -71,6 +75,8 @@ private:
ResourceLoaderOptions m_options;
ResourceLoadPriority m_priority;
bool m_forPreload;
+ bool m_isBeforeBody;
+ bool m_execAsync;
DeferOption m_defer;
OriginRestriction m_originRestriction;
};
« no previous file with comments | « Source/core/dom/ScriptLoader.cpp ('k') | Source/core/fetch/FetchRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698