#include "third_party/blink/renderer/core/loader/resource/svg_document_resource.h"
#include "third_party/blink/renderer/core/svg/svg_resource_document_content.h"
#include "third_party/blink/renderer/platform/loader/fetch/resource_fetcher.h"
#include "third_party/blink/renderer/platform/scheduler/public/agent_group_scheduler.h"
namespace blink {
namespace {
class SVGDocumentResourceFactory : public ResourceFactory { … };
bool MimeTypeAllowed(const ResourceResponse& response) { … }
}
SVGDocumentResource* SVGDocumentResource::Fetch(
FetchParameters& params,
ResourceFetcher* fetcher,
AgentGroupScheduler& agent_group_scheduler) { … }
SVGDocumentResource::SVGDocumentResource(
const ResourceRequest& request,
const ResourceLoaderOptions& options,
const TextResourceDecoderOptions& decoder_options,
SVGResourceDocumentContent* content)
: … { … }
void SVGDocumentResource::NotifyStartLoad() { … }
void SVGDocumentResource::Finish(base::TimeTicks load_finish_time,
base::SingleThreadTaskRunner* task_runner) { … }
void SVGDocumentResource::FinishAsError(
const ResourceError& error,
base::SingleThreadTaskRunner* task_runner) { … }
void SVGDocumentResource::DestroyDecodedDataForFailedRevalidation() { … }
void SVGDocumentResource::Trace(Visitor* visitor) const { … }
}