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

Unified Diff: Source/core/html/parser/HTMLResourcePreloader.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/html/parser/HTMLPreloadScanner.cpp ('k') | Source/core/html/parser/HTMLResourcePreloader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLResourcePreloader.h
diff --git a/Source/core/html/parser/HTMLResourcePreloader.h b/Source/core/html/parser/HTMLResourcePreloader.h
index 521dff7c60a9dd55b1fa372ccf4c957ff8e22e15..3d7619606d7a9a5a3732467478d0c681b855a306 100644
--- a/Source/core/html/parser/HTMLResourcePreloader.h
+++ b/Source/core/html/parser/HTMLResourcePreloader.h
@@ -46,6 +46,10 @@ public:
const String& charset() const { return m_charset; }
double discoveryTime() const { return m_discoveryTime; }
+ bool isBeforeBody() const { return m_isBeforeBody; }
+ void setIsBeforeBody(const bool isBeforeBody) { m_isBeforeBody = isBeforeBody; }
+ bool execAsync() const { return m_execAsync; }
+ void setExecAsync(const bool execAsync) { m_execAsync = execAsync; }
void setCharset(const String& charset) { m_charset = charset.isolatedCopy(); }
void setCrossOriginEnabled(StoredCredentials allowCredentials)
{
@@ -65,6 +69,8 @@ private:
, m_isCORSEnabled(false)
, m_allowCredentials(DoNotAllowStoredCredentials)
, m_discoveryTime(monotonicallyIncreasingTime())
+ , m_isBeforeBody(false)
+ , m_execAsync(false)
{
}
@@ -79,6 +85,8 @@ private:
bool m_isCORSEnabled;
StoredCredentials m_allowCredentials;
double m_discoveryTime;
+ bool m_isBeforeBody;
+ bool m_execAsync;
};
typedef Vector<OwnPtr<PreloadRequest> > PreloadRequestStream;
« no previous file with comments | « Source/core/html/parser/HTMLPreloadScanner.cpp ('k') | Source/core/html/parser/HTMLResourcePreloader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698