#include "components/subresource_filter/core/common/document_subresource_filter.h"
#include <memory>
#include <utility>
#include "base/check.h"
#include "base/check_op.h"
#include "base/not_fatal_until.h"
#include "base/trace_event/trace_event.h"
#include "components/subresource_filter/core/common/first_party_origin.h"
#include "components/subresource_filter/core/common/memory_mapped_ruleset.h"
#include "components/subresource_filter/core/common/scoped_timers.h"
#include "components/subresource_filter/core/common/time_measurements.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace subresource_filter {
DocumentSubresourceFilter::DocumentSubresourceFilter(
url::Origin document_origin,
mojom::ActivationState activation_state,
scoped_refptr<const MemoryMappedRuleset> ruleset)
: … { … }
DocumentSubresourceFilter::~DocumentSubresourceFilter() = default;
LoadPolicy DocumentSubresourceFilter::GetLoadPolicy(
const GURL& subresource_url,
url_pattern_index::proto::ElementType subresource_type) { … }
const url_pattern_index::flat::UrlRule*
DocumentSubresourceFilter::FindMatchingUrlRule(
const GURL& subresource_url,
url_pattern_index::proto::ElementType subresource_type) { … }
}