// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef THIRD_PARTY_BLINK_RENDERER_CORE_HTML_PARSER_HTML_DOCUMENT_PARSER_STATE_H_ #define THIRD_PARTY_BLINK_RENDERER_CORE_HTML_PARSER_HTML_DOCUMENT_PARSER_STATE_H_ #include "third_party/blink/renderer/core/html/nesting_level_incrementer.h" #include "third_party/blink/renderer/core/html/parser/parser_synchronization_policy.h" #include "third_party/blink/renderer/platform/heap/garbage_collected.h" namespace blink { // Determines how preloads will be processed when available in the background. // It is important to process preloads quickly so the request can be started as // soon as possible. An experiment will be run to pick the best option which // will then be hard coded. enum class PreloadProcessingMode { … }; // This class encapsulates the internal state needed for synchronous foreground // HTML parsing (e.g. if HTMLDocumentParser::PumpTokenizer yields, this class // tracks what should be done after the pump completes.) class HTMLDocumentParserState : public GarbageCollected<HTMLDocumentParserState> { … }; } // namespace blink #endif // THIRD_PARTY_BLINK_RENDERER_CORE_HTML_PARSER_HTML_DOCUMENT_PARSER_STATE_H_