#include "chrome/browser/media_effects/media_effects_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/profiles/profile.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/media_effects/media_effects_model_provider.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
#include "media/base/media_switches.h"
MediaEffectsService* MediaEffectsServiceFactory::GetForBrowserContext(
content::BrowserContext* browser_context) { … }
MediaEffectsServiceFactory* MediaEffectsServiceFactory::GetInstance() { … }
MediaEffectsServiceFactory::MediaEffectsServiceFactory()
: … { … }
MediaEffectsServiceFactory::~MediaEffectsServiceFactory() = default;
class SegmentationModelObserver
: public optimization_guide::OptimizationTargetModelObserver,
public MediaEffectsModelProvider { … };
std::unique_ptr<KeyedService>
MediaEffectsServiceFactory::BuildServiceInstanceForBrowserContext(
content::BrowserContext* browser_context) const { … }