#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/core/html/parser/css_preload_scanner.h"
#include <memory>
#include "third_party/blink/renderer/core/html/parser/html_parser_idioms.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_initiator_type_names.h"
#include "third_party/blink/renderer/platform/network/http_names.h"
#include "third_party/blink/renderer/platform/text/segmented_string.h"
namespace blink {
CSSPreloadScanner::CSSPreloadScanner() = default;
CSSPreloadScanner::~CSSPreloadScanner() = default;
void CSSPreloadScanner::Reset() { … }
template <typename Char>
void CSSPreloadScanner::ScanCommon(
const Char* begin,
const Char* end,
const SegmentedString& source,
PreloadRequestStream& requests,
const KURL& predicted_base_element_url,
const PreloadRequest::ExclusionInfo* exclusion_info) { … }
void CSSPreloadScanner::Scan(
const HTMLToken::DataVector& data,
const SegmentedString& source,
PreloadRequestStream& requests,
const KURL& predicted_base_element_url,
const PreloadRequest::ExclusionInfo* exclusion_info) { … }
void CSSPreloadScanner::Scan(
const String& tag_name,
const SegmentedString& source,
PreloadRequestStream& requests,
const KURL& predicted_base_element_url,
const PreloadRequest::ExclusionInfo* exclusion_info) { … }
void CSSPreloadScanner::SetReferrerPolicy(
network::mojom::ReferrerPolicy policy) { … }
inline void CSSPreloadScanner::Tokenize(UChar c,
const SegmentedString& source) { … }
bool CSSPreloadScanner::HasFinishedRuleValue() const { … }
static String ParseCSSStringOrURL(const String& string) { … }
bool CSSPreloadScanner::CanPreloadImportRule() const { … }
void CSSPreloadScanner::EmitRule(const SegmentedString& source) { … }
}