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

Unified Diff: Source/core/html/HTMLLinkElement.h

Issue 166633002: Prefetch @import files from CSS files. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed according to Yoav´s comments Created 5 years, 11 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/StyleSheetResourceClient.h ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLLinkElement.h
diff --git a/Source/core/html/HTMLLinkElement.h b/Source/core/html/HTMLLinkElement.h
index 9e6048c7b88205eca09c231e59d6ea0665597f67..8643e2096740bc9c944b0041989fbd5c14ddbbd2 100644
--- a/Source/core/html/HTMLLinkElement.h
+++ b/Source/core/html/HTMLLinkElement.h
@@ -33,6 +33,10 @@
#include "core/html/HTMLElement.h"
#include "core/html/LinkRelAttribute.h"
#include "core/html/LinkResource.h"
+#include "core/html/parser/BackgroundHTMLInputStream.h"
+#include "core/html/parser/CSSPreloadScanner.h"
+#include "core/html/parser/HTMLParserOptions.h"
+#include "core/html/parser/HTMLTokenizer.h"
#include "core/loader/LinkLoader.h"
#include "core/loader/LinkLoaderClient.h"
@@ -86,6 +90,7 @@ public:
private:
// From StyleSheetResourceClient
virtual void setCSSStyleSheet(const String& href, const KURL& baseURL, const String& charset, const CSSStyleSheetResource*) override;
+ virtual void dataReceived(const CSSStyleSheetResource* cachedStyleSheet) override;
enum DisabledState {
Unset,
@@ -105,6 +110,12 @@ private:
Document& document();
RefPtrWillBeMember<CSSStyleSheet> m_sheet;
+ BackgroundHTMLInputStream m_input;
+ OwnPtr<HTMLToken> m_token;
+ HTMLParserOptions m_options;
+ OwnPtr<HTMLTokenizer> m_tokenizer;
+ OwnPtr<CSSPreloadScanner> m_preloadScanner;
+ unsigned m_preloadLength;
DisabledState m_disabledState;
PendingSheetType m_pendingSheetType;
bool m_loading;
« no previous file with comments | « Source/core/fetch/StyleSheetResourceClient.h ('k') | Source/core/html/HTMLLinkElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698