#include "third_party/blink/public/common/loader/mime_sniffing_throttle.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "net/base/mime_sniffer.h"
#include "services/network/public/mojom/url_response_head.mojom.h"
#include "third_party/blink/public/common/loader/mime_sniffing_url_loader.h"
namespace blink {
MimeSniffingThrottle::MimeSniffingThrottle(
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
MimeSniffingThrottle::~MimeSniffingThrottle() = default;
void MimeSniffingThrottle::DetachFromCurrentSequence() { … }
void MimeSniffingThrottle::WillProcessResponse(
const GURL& response_url,
network::mojom::URLResponseHead* response_head,
bool* defer) { … }
const char* MimeSniffingThrottle::NameForLoggingWillProcessResponse() { … }
void MimeSniffingThrottle::ResumeWithNewResponseHead(
network::mojom::URLResponseHeadPtr new_response_head,
mojo::ScopedDataPipeConsumerHandle body) { … }
}