| 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 9971f77b66f8a3c9cae62bc217589bd0e2fc37c5..d5936afdf3efaaecf92d5f12d80087907b3f8487 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLPreloadScanner.h
|
| @@ -82,12 +82,9 @@
|
| USING_FAST_MALLOC(TokenPreloadScanner);
|
|
|
| public:
|
| - enum class ScannerType { kMainDocument, kInsertion };
|
| -
|
| TokenPreloadScanner(const KURL& document_url,
|
| std::unique_ptr<CachedDocumentParameters>,
|
| - const MediaValuesCached::MediaValuesCachedData&,
|
| - const ScannerType);
|
| + const MediaValuesCached::MediaValuesCachedData&);
|
| ~TokenPreloadScanner();
|
|
|
| void Scan(const HTMLToken&,
|
| @@ -165,7 +162,6 @@
|
| std::unique_ptr<CachedDocumentParameters> document_parameters_;
|
| Persistent<MediaValuesCached> media_values_;
|
| ClientHintsPreferences client_hints_preferences_;
|
| - ScannerType scanner_type_;
|
|
|
| bool did_rewind_ = false;
|
|
|
| @@ -181,11 +177,11 @@
|
| const HTMLParserOptions& options,
|
| const KURL& document_url,
|
| std::unique_ptr<CachedDocumentParameters> document_parameters,
|
| - const MediaValuesCached::MediaValuesCachedData& media_values_cached_data,
|
| - const TokenPreloadScanner::ScannerType scanner_type) {
|
| + const MediaValuesCached::MediaValuesCachedData&
|
| + media_values_cached_data) {
|
| return WTF::WrapUnique(new HTMLPreloadScanner(
|
| options, document_url, std::move(document_parameters),
|
| - media_values_cached_data, scanner_type));
|
| + media_values_cached_data));
|
| }
|
|
|
| ~HTMLPreloadScanner();
|
| @@ -198,8 +194,7 @@
|
| HTMLPreloadScanner(const HTMLParserOptions&,
|
| const KURL& document_url,
|
| std::unique_ptr<CachedDocumentParameters>,
|
| - const MediaValuesCached::MediaValuesCachedData&,
|
| - const TokenPreloadScanner::ScannerType);
|
| + const MediaValuesCached::MediaValuesCachedData&);
|
|
|
| TokenPreloadScanner scanner_;
|
| SegmentedString source_;
|
|
|