#include "chrome/browser/ui/webui/ntp/cookie_controls_handler.h"
#include <utility>
#include "base/feature_list.h"
#include "base/functional/bind.h"
#include "base/values.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/cookie_controls/cookie_controls_service.h"
#include "chrome/browser/ui/cookie_controls/cookie_controls_service_factory.h"
#include "chrome/common/chrome_features.h"
#include "chrome/common/webui_url_constants.h"
#include "components/content_settings/core/common/cookie_controls_enforcement.h"
namespace {
static const char* kPolicyIcon = …;
static const char* kExtensionIcon = …;
static const char* kSettingsIcon = …;
}
CookieControlsHandler::CookieControlsHandler(Profile* profile)
: … { … }
CookieControlsHandler::~CookieControlsHandler() { … }
void CookieControlsHandler::RegisterMessages() { … }
void CookieControlsHandler::OnJavascriptAllowed() { … }
void CookieControlsHandler::OnJavascriptDisallowed() { … }
void CookieControlsHandler::HandleCookieControlsToggleChanged(
const base::Value::List& args) { … }
void CookieControlsHandler::HandleObserveCookieControlsSettingsChanges(
const base::Value::List& args) { … }
const char* CookieControlsHandler::GetEnforcementIcon(
CookieControlsEnforcement enforcement) { … }
void CookieControlsHandler::OnThirdPartyCookieBlockingPrefChanged() { … }
void CookieControlsHandler::OnThirdPartyCookieBlockingPolicyChanged() { … }
void CookieControlsHandler::SendCookieControlsUIChanges() { … }