#include "chrome/browser/ui/webui/browsing_topics/browsing_topics_internals_page_handler.h"
#include <utility>
#include "chrome/browser/browsing_topics/browsing_topics_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "components/browsing_topics/browsing_topics_service.h"
#include "components/browsing_topics/mojom/browsing_topics_internals.mojom.h"
#include "components/privacy_sandbox/privacy_sandbox_features.h"
#include "content/public/common/content_features.h"
#include "third_party/blink/public/common/features.h"
BrowsingTopicsInternalsPageHandler::BrowsingTopicsInternalsPageHandler(
Profile* profile,
mojo::PendingReceiver<browsing_topics::mojom::PageHandler> receiver)
: … { … }
BrowsingTopicsInternalsPageHandler::~BrowsingTopicsInternalsPageHandler() =
default;
void BrowsingTopicsInternalsPageHandler::GetBrowsingTopicsConfiguration(
browsing_topics::mojom::PageHandler::GetBrowsingTopicsConfigurationCallback
callback) { … }
void BrowsingTopicsInternalsPageHandler::GetBrowsingTopicsState(
bool calculate_now,
browsing_topics::mojom::PageHandler::GetBrowsingTopicsStateCallback
callback) { … }
void BrowsingTopicsInternalsPageHandler::GetModelInfo(
browsing_topics::mojom::PageHandler::GetModelInfoCallback callback) { … }
void BrowsingTopicsInternalsPageHandler::ClassifyHosts(
const std::vector<std::string>& hosts,
browsing_topics::mojom::PageHandler::ClassifyHostsCallback callback) { … }
void BrowsingTopicsInternalsPageHandler::OnGetModelInfoCompleted(
browsing_topics::mojom::PageHandler::GetModelInfoCallback callback) { … }
void BrowsingTopicsInternalsPageHandler::OnGetTopicsForHostsCompleted(
browsing_topics::mojom::PageHandler::ClassifyHostsCallback callback,
const std::vector<browsing_topics::Annotation>& annotations) { … }