#include "chrome/browser/browsing_topics/browsing_topics_service_factory.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/task_traits.h"
#include "base/task/thread_pool.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service.h"
#include "chrome/browser/optimization_guide/optimization_guide_keyed_service_factory.h"
#include "chrome/browser/privacy_sandbox/privacy_sandbox_settings_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "components/browsing_topics/annotator.h"
#include "components/browsing_topics/browsing_topics_service.h"
#include "components/browsing_topics/browsing_topics_service_impl.h"
#include "components/content_settings/browser/page_specific_content_settings.h"
#include "components/history/core/browser/history_service.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/optimization_guide/core/optimization_guide_model_provider.h"
#include "components/optimization_guide/machine_learning_tflite_buildflags.h"
#include "components/optimization_guide/proto/page_topics_model_metadata.pb.h"
#include "components/privacy_sandbox/privacy_sandbox_settings.h"
#include "content/public/browser/browsing_topics_site_data_manager.h"
#include "content/public/browser/storage_partition.h"
#include "third_party/blink/public/common/features.h"
#if BUILDFLAG(BUILD_WITH_TFLITE_LIB)
#include "components/browsing_topics/annotator_impl.h"
#else
#include "components/browsing_topics/annotator_noop.h"
#endif
namespace browsing_topics {
BrowsingTopicsService* BrowsingTopicsServiceFactory::GetForProfile(
Profile* profile) { … }
BrowsingTopicsServiceFactory* BrowsingTopicsServiceFactory::GetInstance() { … }
BrowsingTopicsServiceFactory::BrowsingTopicsServiceFactory()
: … { … }
BrowsingTopicsServiceFactory::~BrowsingTopicsServiceFactory() = default;
KeyedService* BrowsingTopicsServiceFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const { … }
bool BrowsingTopicsServiceFactory::ServiceIsCreatedWithBrowserContext() const { … }
}