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

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: Cleaned up a few stray member variables Created 6 years, 3 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..967680cb23ac3c5b979dd1c9323200e07469fae7 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; }
+ FetchRequest::DeferOption defer() const { return m_defer; }
+ void setDefer(FetchRequest::DeferOption defer) { m_defer = defer; }
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_defer(FetchRequest::NoDefer)
{
}
@@ -79,6 +82,7 @@ private:
bool m_isCORSEnabled;
StoredCredentials m_allowCredentials;
double m_discoveryTime;
+ FetchRequest::DeferOption m_defer;
};
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