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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2010 Google Inc. All Rights Reserved. 3 * Copyright (C) 2010 Google Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 DECLARE_TRACE(); 100 DECLARE_TRACE();
101 101
102 protected: 102 protected:
103 // Protected for tests, which don't want to initialize a fully featured 103 // Protected for tests, which don't want to initialize a fully featured
104 // DocumentLoader. 104 // DocumentLoader.
105 virtual void fetchPreloads(PreloadRequestStream& preloads); 105 virtual void fetchPreloads(PreloadRequestStream& preloads);
106 106
107 private: 107 private:
108 void scanCSS(const CSSStyleSheetResource*); 108 void scanCSS(const CSSStyleSheetResource*);
109 109
110 enum PreloadPolicy {
111 ScanOnly,
112 ScanAndPreload,
113 };
114
115 const PreloadPolicy m_policy;
110 WeakMember<HTMLResourcePreloader> m_preloader; 116 WeakMember<HTMLResourcePreloader> m_preloader;
111 }; 117 };
112 118
113 } // namespace blink 119 } // namespace blink
114 120
115 #endif 121 #endif
OLDNEW
« 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