#include "chrome/browser/ui/cookie_controls/cookie_controls_service.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/metrics/user_metrics.h"
#include "base/metrics/user_metrics_action.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/policy/profile_policy_connector.h"
#include "chrome/browser/profiles/profile.h"
#include "components/content_settings/core/common/pref_names.h"
#include "components/policy/core/common/policy_service.h"
#include "components/policy/policy_constants.h"
#include "components/prefs/pref_service.h"
CookieControlsMode;
CookieControlsService::CookieControlsService(Profile* profile)
: … { … }
CookieControlsService::~CookieControlsService() = default;
void CookieControlsService::Init() { … }
void CookieControlsService::Shutdown() { … }
void CookieControlsService::HandleCookieControlsToggleChanged(bool checked) { … }
bool CookieControlsService::ShouldEnforceCookieControls() { … }
CookieControlsEnforcement
CookieControlsService::GetCookieControlsEnforcement() { … }
bool CookieControlsService::GetToggleCheckedValue() { … }
void CookieControlsService::OnThirdPartyCookieBlockingChanged(
bool block_third_party_cookies) { … }
void CookieControlsService::OnThirdPartyCookieBlockingPolicyChanged(
const base::Value* previous,
const base::Value* current) { … }