Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h |
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h |
| index 6c83f39042d35ce2562bfb78fd625622f11b28a9..3e493518f557ecd9e62424cd39c6e4bb24c2258e 100644 |
| --- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h |
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h |
| @@ -45,6 +45,15 @@ class HTMLParserOptions; |
| class HTMLTokenizer; |
| class SegmentedString; |
| +struct ViewportDescriptionWrapper { |
|
sof
2016/03/18 20:03:42
Is there some alternative way of exposing this ext
Yoav Weiss
2016/03/18 22:02:49
Any specific suggestions?
|
| + ViewportDescription description; |
| + bool set; |
| + ViewportDescriptionWrapper() |
| + : set(false) |
| + { |
| + } |
| +}; |
| + |
| struct CORE_EXPORT CachedDocumentParameters { |
| USING_FAST_MALLOC(CachedDocumentParameters); |
| public: |
| @@ -69,8 +78,8 @@ public: |
| TokenPreloadScanner(const KURL& documentURL, PassOwnPtr<CachedDocumentParameters>, const MediaValuesCached::MediaValuesCachedData&); |
| ~TokenPreloadScanner(); |
| - void scan(const HTMLToken&, const SegmentedString&, PreloadRequestStream& requests); |
| - void scan(const CompactHTMLToken&, const SegmentedString&, PreloadRequestStream& requests); |
| + void scan(const HTMLToken&, const SegmentedString&, PreloadRequestStream& requests, ViewportDescriptionWrapper*); |
| + void scan(const CompactHTMLToken&, const SegmentedString&, PreloadRequestStream& requests, ViewportDescriptionWrapper*); |
| void setPredictedBaseElementURL(const KURL& url) { m_predictedBaseElementURL = url; } |
| @@ -83,7 +92,7 @@ private: |
| class StartTagScanner; |
| template <typename Token> |
| - inline void scanCommon(const Token&, const SegmentedString&, PreloadRequestStream& requests); |
| + inline void scanCommon(const Token&, const SegmentedString&, PreloadRequestStream& requests, ViewportDescriptionWrapper*); |
| template<typename Token> |
| void updatePredictedBaseURL(const Token&); |
| @@ -146,7 +155,7 @@ public: |
| ~HTMLPreloadScanner(); |
| void appendToEnd(const SegmentedString&); |
| - void scan(ResourcePreloader*, const KURL& documentBaseElementURL); |
| + void scan(ResourcePreloader*, const KURL& documentBaseElementURL, ViewportDescriptionWrapper*); |
| private: |
| HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL, PassOwnPtr<CachedDocumentParameters>, const MediaValuesCached::MediaValuesCachedData&); |