#include "chrome/browser/storage_access_api/storage_access_header_service.h"
#include "base/functional/callback_helpers.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_pattern.h"
#include "components/content_settings/core/common/content_settings_types.h"
#include "components/content_settings/core/common/content_settings_utils.h"
#include "components/origin_trials/browser/origin_trials.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/storage_partition.h"
#include "services/network/public/mojom/cookie_manager.mojom.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace storage_access_api::trial {
namespace {
const char kTrialName[] = …;
}
StorageAccessHeaderService::StorageAccessHeaderService(
content::BrowserContext* browser_context)
: … { … }
StorageAccessHeaderService::~StorageAccessHeaderService() = default;
void StorageAccessHeaderService::Shutdown() { … }
void StorageAccessHeaderService::UpdateSettingsForTesting(
const OriginTrialStatusChangeDetails& details) { … }
void StorageAccessHeaderService::UpdateSettings(
const OriginTrialStatusChangeDetails& details) { … }
void StorageAccessHeaderService::SyncSettingsToNetworkService(
HostContentSettingsMap* settings_map) { … }
void StorageAccessHeaderService::OnStatusChanged(
const OriginTrialStatusChangeDetails& details) { … }
void StorageAccessHeaderService::OnPersistedTokensCleared() { … }
std::string StorageAccessHeaderService::trial_name() { … }
}