chromium/chrome/browser/tpcd/support/top_level_trial_service.cc

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

#include "chrome/browser/tpcd/support/top_level_trial_service.h"

#include "base/metrics/histogram_functions.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/document_user_data.h"
#include "content/public/browser/navigation_handle.h"
#include "content/public/browser/origin_trials_controller_delegate.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/storage_partition.h"
#include "net/base/features.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "services/metrics/public/cpp/ukm_builders.h"
#include "services/metrics/public/cpp/ukm_recorder.h"
#include "services/network/public/mojom/cookie_manager.mojom.h"

namespace tpcd::trial {
namespace {

const char kTrialName[] =;

OriginTrialStatusChange ClassifyStatusChange(
    const OriginTrialStatusChangeDetails& details) {}

inline void UmaHistogramCrossSiteChange(
    const OriginTrialStatusChangeDetails& details) {}

bool IsSameSite(const GURL& url1, const GURL& url2) {}
}  // namespace

TopLevelTrialService::TopLevelTrialService(
    content::BrowserContext* browser_context)
    :{}

TopLevelTrialService::~TopLevelTrialService() = default;

void TopLevelTrialService::Shutdown() {}

void TopLevelTrialService::UpdateTopLevelTrialSettingsForTesting(
    const url::Origin& origin,
    bool match_subdomains,
    bool enabled) {}

void TopLevelTrialService::UpdateTopLevelTrialSettings(
    const url::Origin& origin,
    bool match_subdomains,
    bool enabled) {}

void TopLevelTrialService::ClearTopLevelTrialSettings() {}

void TopLevelTrialService::OnStatusChanged(
    const OriginTrialStatusChangeDetails& details) {}

void TopLevelTrialService::OnPersistedTokensCleared() {}

std::string TopLevelTrialService::trial_name() {}

}  // namespace tpcd::trial