#include "third_party/blink/renderer/core/loader/resource/css_style_sheet_resource.h"
#include "base/metrics/histogram_functions.h"
#include "base/task/single_thread_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/mojom/fetch/fetch_api_request.mojom-blink.h"
#include "third_party/blink/public/mojom/loader/request_context_frame_type.mojom-blink.h"
#include "third_party/blink/renderer/core/css/style_sheet_contents.h"
#include "third_party/blink/renderer/core/frame/web_feature.h"
#include "third_party/blink/renderer/platform/heap/cross_thread_persistent.h"
#include "third_party/blink/renderer/platform/loader/fetch/fetch_parameters.h"
#include "third_party/blink/renderer/platform/loader/fetch/memory_cache.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_loader_options.h"
#include "third_party/blink/renderer/platform/loader/fetch/response_body_loader.h"
#include "third_party/blink/renderer/platform/loader/fetch/text_resource_decoder_options.h"
#include "third_party/blink/renderer/platform/network/http_names.h"
#include "third_party/blink/renderer/platform/network/mime/mime_type_registry.h"
#include "third_party/blink/renderer/platform/scheduler/public/post_cross_thread_task.h"
#include "third_party/blink/renderer/platform/scheduler/public/worker_pool.h"
#include "third_party/blink/renderer/platform/weborigin/security_policy.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_base.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_mojo.h"
#include "third_party/blink/renderer/platform/wtf/cross_thread_copier_std.h"
#include "third_party/blink/renderer/platform/wtf/text/string_builder.h"
#include "third_party/blink/renderer/platform/wtf/text/text_encoding.h"
namespace blink {
CSSStyleSheetResource* CSSStyleSheetResource::Fetch(FetchParameters& params,
ResourceFetcher* fetcher,
ResourceClient* client) { … }
CSSStyleSheetResource* CSSStyleSheetResource::CreateForTest(
const KURL& url,
const WTF::TextEncoding& encoding) { … }
CSSStyleSheetResource::CSSStyleSheetResource(
const ResourceRequest& resource_request,
const ResourceLoaderOptions& options,
const TextResourceDecoderOptions& decoder_options)
: … { … }
CSSStyleSheetResource::~CSSStyleSheetResource() = default;
void CSSStyleSheetResource::SetParsedStyleSheetCache(
StyleSheetContents* new_sheet) { … }
void CSSStyleSheetResource::Trace(Visitor* visitor) const { … }
void CSSStyleSheetResource::OnMemoryDump(
WebMemoryDumpLevelOfDetail level_of_detail,
WebProcessMemoryDump* memory_dump) const { … }
network::mojom::ReferrerPolicy CSSStyleSheetResource::GetReferrerPolicy()
const { … }
const String CSSStyleSheetResource::SheetText(
const CSSParserContext* parser_context,
MIMETypeCheck mime_type_check) const { … }
void CSSStyleSheetResource::NotifyFinished() { … }
void CSSStyleSheetResource::DestroyDecodedDataIfPossible() { … }
void CSSStyleSheetResource::DestroyDecodedDataForFailedRevalidation() { … }
bool CSSStyleSheetResource::CanUseSheet(const CSSParserContext* parser_context,
MIMETypeCheck mime_type_check) const { … }
StyleSheetContents* CSSStyleSheetResource::CreateParsedStyleSheetFromCache(
const CSSParserContext* context) { … }
void CSSStyleSheetResource::SaveParsedStyleSheet(StyleSheetContents* sheet) { … }
void CSSStyleSheetResource::SetDecodedSheetText(
const String& decoded_sheet_text) { … }
void CSSStyleSheetResource::UpdateDecodedSize() { … }
}