chromium/components/subresource_filter/content/browser/ads_intervention_manager.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/subresource_filter/content/browser/ads_intervention_manager.h"

#include <optional>

#include "base/metrics/histogram_macros.h"
#include "base/time/default_clock.h"
#include "base/time/time.h"
#include "base/values.h"
#include "components/subresource_filter/content/browser/subresource_filter_content_settings_manager.h"
#include "components/subresource_filter/core/browser/subresource_filter_features.h"
#include "content/public/browser/navigation_handle.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
#include "url/gurl.h"

namespace subresource_filter {

namespace {

// Key into the website settings dict for last active ads violation.
const char kLastAdsViolationTimeKey[] =;
const char kLastAdsViolationKey[] =;

// Histograms
const char kAdsInterventionRecordedHistogramName[] =;

AdsInterventionStatus GetAdsInterventionStatus(bool activation_status,
                                               bool intervention_active) {}

}  // namespace

// static
base::TimeDelta AdsInterventionManager::GetInterventionDuration(
    mojom::AdsViolation violation) {}

AdsInterventionManager::AdsInterventionManager(
    SubresourceFilterContentSettingsManager* settings_manager)
    :{}

AdsInterventionManager::~AdsInterventionManager() = default;

void AdsInterventionManager::TriggerAdsInterventionForUrlOnSubsequentLoads(
    const GURL& url,
    mojom::AdsViolation ads_violation) {}

std::optional<AdsInterventionManager::LastAdsIntervention>
AdsInterventionManager::GetLastAdsIntervention(const GURL& url) const {}

bool AdsInterventionManager::ShouldActivate(
    content::NavigationHandle* navigation_handle) const {}

}  // namespace subresource_filter