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

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

Issue 514893002: Lower priority of async scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Moved async script priority to low 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
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..820ffb6fbb1d97b0d4df853fc9595f0b06b6b984 100644
--- a/Source/core/html/parser/HTMLResourcePreloader.h
+++ b/Source/core/html/parser/HTMLResourcePreloader.h
@@ -46,6 +46,8 @@ public:
const String& charset() const { return m_charset; }
double discoveryTime() const { return m_discoveryTime; }
+ 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 +67,7 @@ private:
, m_isCORSEnabled(false)
, m_allowCredentials(DoNotAllowStoredCredentials)
, m_discoveryTime(monotonicallyIncreasingTime())
+ , m_execAsync(false)
{
}
@@ -79,6 +82,7 @@ private:
bool m_isCORSEnabled;
StoredCredentials m_allowCredentials;
double m_discoveryTime;
+ bool m_execAsync;
};
typedef Vector<OwnPtr<PreloadRequest> > PreloadRequestStream;

Powered by Google App Engine
This is Rietveld 408576698