| Index: Source/core/html/parser/HTMLPreloadScanner.h
|
| diff --git a/Source/core/html/parser/HTMLPreloadScanner.h b/Source/core/html/parser/HTMLPreloadScanner.h
|
| index c7ff2b1a592e1bd031c2c4e320337f0f6be88153..1752b9d0b8533798ddc2d68c286e8c1cd5d0dfec 100644
|
| --- a/Source/core/html/parser/HTMLPreloadScanner.h
|
| +++ b/Source/core/html/parser/HTMLPreloadScanner.h
|
| @@ -33,6 +33,7 @@
|
| #include "core/platform/text/SegmentedString.h"
|
| #include <wtf/Vector.h>
|
|
|
| +
|
| namespace WebCore {
|
|
|
| typedef size_t TokenPreloadScannerCheckpoint;
|
| @@ -40,11 +41,12 @@ typedef size_t TokenPreloadScannerCheckpoint;
|
| class HTMLParserOptions;
|
| class HTMLTokenizer;
|
| class SegmentedString;
|
| +class MediaValues;
|
|
|
| class TokenPreloadScanner {
|
| WTF_MAKE_NONCOPYABLE(TokenPreloadScanner); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - explicit TokenPreloadScanner(const KURL& documentURL);
|
| + explicit TokenPreloadScanner(const KURL& documentURL, PassRefPtr<MediaValues>);
|
| ~TokenPreloadScanner();
|
|
|
| void scan(const HTMLToken&, const SegmentedString&, PreloadRequestStream& requests);
|
| @@ -90,6 +92,7 @@ private:
|
| KURL m_predictedBaseElementURL;
|
| bool m_inStyle;
|
| size_t m_templateCount;
|
| + RefPtr<MediaValues> m_mediaValues;
|
|
|
| Vector<Checkpoint> m_checkpoints;
|
| };
|
| @@ -97,7 +100,7 @@ private:
|
| class HTMLPreloadScanner {
|
| WTF_MAKE_NONCOPYABLE(HTMLPreloadScanner); WTF_MAKE_FAST_ALLOCATED;
|
| public:
|
| - HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL);
|
| + HTMLPreloadScanner(const HTMLParserOptions&, const KURL& documentURL, PassRefPtr<MediaValues>);
|
| ~HTMLPreloadScanner();
|
|
|
| void appendToEnd(const SegmentedString&);
|
|
|