#include "components/subresource_filter/content/shared/browser/activation_state_computing_navigation_throttle.h"
#include <utility>
#include "base/check.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/memory/ptr_util.h"
#include "base/not_fatal_until.h"
#include "components/subresource_filter/content/shared/common/subresource_filter_utils.h"
#include "components/subresource_filter/core/browser/async_document_subresource_filter.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
namespace subresource_filter {
std::unique_ptr<ActivationStateComputingNavigationThrottle>
ActivationStateComputingNavigationThrottle::CreateForRoot(
content::NavigationHandle* navigation_handle) { … }
std::unique_ptr<ActivationStateComputingNavigationThrottle>
ActivationStateComputingNavigationThrottle::CreateForChild(
content::NavigationHandle* navigation_handle,
VerifiedRuleset::Handle* ruleset_handle,
const mojom::ActivationState& parent_activation_state) { … }
ActivationStateComputingNavigationThrottle::
ActivationStateComputingNavigationThrottle(
content::NavigationHandle* navigation_handle,
const std::optional<mojom::ActivationState> parent_activation_state,
VerifiedRuleset::Handle* ruleset_handle)
: … { … }
ActivationStateComputingNavigationThrottle::
~ActivationStateComputingNavigationThrottle() = default;
void ActivationStateComputingNavigationThrottle::
NotifyPageActivationWithRuleset(
VerifiedRuleset::Handle* ruleset_handle,
const mojom::ActivationState& page_activation_state) { … }
content::NavigationThrottle::ThrottleCheckResult
ActivationStateComputingNavigationThrottle::WillStartRequest() { … }
content::NavigationThrottle::ThrottleCheckResult
ActivationStateComputingNavigationThrottle::WillRedirectRequest() { … }
content::NavigationThrottle::ThrottleCheckResult
ActivationStateComputingNavigationThrottle::WillProcessResponse() { … }
const char* ActivationStateComputingNavigationThrottle::GetNameForLogging() { … }
void ActivationStateComputingNavigationThrottle::CheckActivationState() { … }
void ActivationStateComputingNavigationThrottle::OnActivationStateComputed(
mojom::ActivationState state) { … }
void ActivationStateComputingNavigationThrottle::UpdateWithMoreAccurateState() { … }
AsyncDocumentSubresourceFilter*
ActivationStateComputingNavigationThrottle::filter() const { … }
std::unique_ptr<AsyncDocumentSubresourceFilter>
ActivationStateComputingNavigationThrottle::ReleaseFilter() { … }
void ActivationStateComputingNavigationThrottle::
WillSendActivationToRenderer() { … }
}