#include "chrome/browser/ui/webui/privacy_sandbox/related_website_sets/related_website_sets_handler.h"
#include "base/check.h"
#include "chrome/browser/first_party_sets/first_party_sets_policy_service.h"
#include "chrome/browser/first_party_sets/first_party_sets_policy_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "content/public/browser/web_contents.h"
#include "url/gurl.h"
Member;
MemberPtr;
RelatedWebsiteSet;
RelatedWebsiteSetPtr;
SiteType;
namespace {
constexpr char kNoServiceError[] = …;
constexpr char kServiceNotReadyError[] = …;
SiteType GetSiteType(const net::SiteType type) { … }
std::vector<RelatedWebsiteSetPtr> ComputeRelatedWebsiteSetsInfo(
base::WeakPtr<first_party_sets::FirstPartySetsPolicyService> service) { … }
}
RelatedWebsiteSetsHandler::RelatedWebsiteSetsHandler(
content::WebUI* web_ui,
mojo::PendingReceiver<
related_website_sets::mojom::RelatedWebsiteSetsPageHandler> receiver)
: … { … }
RelatedWebsiteSetsHandler::~RelatedWebsiteSetsHandler() = default;
void RelatedWebsiteSetsHandler::GetRelatedWebsiteSets(
GetRelatedWebsiteSetsCallback callback) { … }