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

Unified Diff: third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.h

Issue 2326873004: [@import scanner] Don't access Document::settings() from appendData callback (Closed)
Patch Set: Created 4 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 | « no previous file | third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.h
diff --git a/third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.h b/third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.h
index f53cf262eaf78769ec4a8746577bac08e165fd84..152f3e9a483ade35ebda7b6dc68be459d70b4d4a 100644
--- a/third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.h
+++ b/third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.h
@@ -107,6 +107,12 @@ protected:
private:
void scanCSS(const CSSStyleSheetResource*);
+ enum PreloadPolicy {
+ ScanOnly,
+ ScanAndPreload,
+ };
+
+ const PreloadPolicy m_policy;
WeakMember<HTMLResourcePreloader> m_preloader;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/html/parser/CSSPreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698