#include "chrome/browser/dom_distiller/dom_distiller_service_factory.h"
#include <utility>
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "build/build_config.h"
#include "chrome/browser/profiles/incognito_helpers.h"
#include "chrome/browser/profiles/profile.h"
#include "components/dom_distiller/content/browser/distiller_page_web_contents.h"
#include "components/dom_distiller/core/article_entry.h"
#include "components/dom_distiller/core/distiller.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#if BUILDFLAG(IS_ANDROID)
#include "chrome/browser/android/dom_distiller/distiller_ui_handle_android.h"
#endif
namespace dom_distiller {
DomDistillerContextKeyedService::DomDistillerContextKeyedService(
std::unique_ptr<DistillerFactory> distiller_factory,
std::unique_ptr<DistillerPageFactory> distiller_page_factory,
std::unique_ptr<DistilledPagePrefs> distilled_page_prefs,
std::unique_ptr<DistillerUIHandle> distiller_ui_handle)
: … { … }
DomDistillerServiceFactory* DomDistillerServiceFactory::GetInstance() { … }
DomDistillerContextKeyedService*
DomDistillerServiceFactory::GetForBrowserContext(
content::BrowserContext* context) { … }
DomDistillerServiceFactory::DomDistillerServiceFactory()
: … { … }
DomDistillerServiceFactory::~DomDistillerServiceFactory() = default;
std::unique_ptr<KeyedService>
DomDistillerServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* context) const { … }
}