#include "content/browser/attribution_reporting/attribution_suitable_context.h"
#include <stdint.h>
#include <optional>
#include <tuple>
#include <utility>
#include "base/check.h"
#include "base/feature_list.h"
#include "base/memory/weak_ptr.h"
#include "components/attribution_reporting/features.h"
#include "components/attribution_reporting/suitable_origin.h"
#include "content/browser/attribution_reporting/attribution_data_host_manager.h"
#include "content/browser/attribution_reporting/attribution_host.h"
#include "content/browser/attribution_reporting/attribution_input_event.h"
#include "content/browser/attribution_reporting/attribution_manager.h"
#include "content/browser/attribution_reporting/attribution_os_level_manager.h"
#include "content/browser/renderer_host/policy_container_host.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/global_routing_id.h"
#include "third_party/blink/public/mojom/permissions_policy/permissions_policy_feature.mojom-shared.h"
namespace content {
namespace {
SuitableOrigin;
}
std::optional<AttributionSuitableContext> AttributionSuitableContext::Create(
GlobalRenderFrameHostId initiator_frame_id) { … }
std::optional<AttributionSuitableContext> AttributionSuitableContext::Create(
RenderFrameHostImpl* initiator_frame) { … }
AttributionSuitableContext AttributionSuitableContext::CreateForTesting(
attribution_reporting::SuitableOrigin context_origin,
bool is_nested_within_fenced_frame,
GlobalRenderFrameHostId root_render_frame_id,
int64_t last_navigation_id,
AttributionInputEvent last_input_event,
ContentBrowserClient::AttributionReportingOsRegistrars os_registrars,
AttributionDataHostManager* attribution_data_host_manager) { … }
bool AttributionSuitableContext::operator==(
const AttributionSuitableContext& other) const { … }
AttributionSuitableContext::AttributionSuitableContext(
attribution_reporting::SuitableOrigin context_origin,
bool is_nested_within_fenced_frame,
GlobalRenderFrameHostId root_render_frame_id,
int64_t last_navigation_id,
AttributionInputEvent last_input_event,
ContentBrowserClient::AttributionReportingOsRegistrars os_registrars,
base::WeakPtr<AttributionDataHostManager> attribution_data_host_manager)
: … { … }
AttributionSuitableContext::AttributionSuitableContext(
const AttributionSuitableContext&) = default;
AttributionSuitableContext& AttributionSuitableContext::operator=(
const AttributionSuitableContext&) = default;
AttributionSuitableContext::AttributionSuitableContext(
AttributionSuitableContext&&) = default;
AttributionSuitableContext& AttributionSuitableContext::operator=(
AttributionSuitableContext&&) = default;
AttributionSuitableContext::~AttributionSuitableContext() = default;
}