#include "chrome/browser/ui/webui/privacy_sandbox/privacy_sandbox_internals_handler.h"
#include "base/logging.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/browser/website_settings_info.h"
#include "components/content_settings/core/browser/website_settings_registry.h"
#include "components/content_settings/core/common/content_settings_pattern_parser.h"
#include "privacy_sandbox_internals_handler.h"
namespace privacy_sandbox_internals {
WebsiteSettingsRegistry;
PrivacySandboxInternalsHandler::PrivacySandboxInternalsHandler(
Profile* profile,
mojo::PendingReceiver<privacy_sandbox_internals::mojom::PageHandler>
pending_receiver)
: … { … }
PrivacySandboxInternalsHandler::~PrivacySandboxInternalsHandler() = default;
void PrivacySandboxInternalsHandler::ReadPref(const std::string& pref_name,
ReadPrefCallback callback) { … }
void PrivacySandboxInternalsHandler::ReadContentSettings(
const ContentSettingsType type,
ReadContentSettingsCallback callback) { … }
void PrivacySandboxInternalsHandler::GetTpcdMetadataGrants(
GetTpcdMetadataGrantsCallback callback) { … }
void PrivacySandboxInternalsHandler::ContentSettingsPatternToString(
const ContentSettingsPattern& pattern,
ContentSettingsPatternToStringCallback callback) { … }
void PrivacySandboxInternalsHandler::StringToContentSettingsPattern(
const std::string& s,
StringToContentSettingsPatternCallback callback) { … }
}