#include "content/web_test/renderer/fake_subresource_filter.h"
#include <string_view>
#include "base/ranges/algorithm.h"
#include "base/strings/string_util.h"
#include "third_party/blink/public/platform/web_url.h"
#include "url/gurl.h"
namespace content {
FakeSubresourceFilter::FakeSubresourceFilter(
std::vector<std::string> disallowed_path_suffixes,
bool block_subresources)
: … { … }
FakeSubresourceFilter::~FakeSubresourceFilter() = default;
blink::WebDocumentSubresourceFilter::LoadPolicy
FakeSubresourceFilter::GetLoadPolicy(const blink::WebURL& resource_url,
blink::mojom::RequestContextType) { … }
blink::WebDocumentSubresourceFilter::LoadPolicy
FakeSubresourceFilter::GetLoadPolicyForWebSocketConnect(
const blink::WebURL& url) { … }
blink::WebDocumentSubresourceFilter::LoadPolicy
FakeSubresourceFilter::GetLoadPolicyForWebTransportConnect(
const blink::WebURL& url) { … }
blink::WebDocumentSubresourceFilter::LoadPolicy
FakeSubresourceFilter::GetLoadPolicyImpl(const blink::WebURL& url) { … }
void FakeSubresourceFilter::ReportDisallowedLoad() { … }
bool FakeSubresourceFilter::ShouldLogToConsole() { … }
}