blob: 862def676d104460f7a02b3c69e4d094ff19c216 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_MEDIA_EFFECTS_MEDIA_EFFECTS_SERVICE_FACTORY_H_
#define COMPONENTS_MEDIA_EFFECTS_MEDIA_EFFECTS_SERVICE_FACTORY_H_
#include "base/no_destructor.h"
#include "components/keyed_service/content/browser_context_keyed_service_factory.h"
#include "components/media_effects/media_effects_service.h"
class MediaEffectsServiceFactory : public BrowserContextKeyedServiceFactory {
public:
static MediaEffectsService* GetForBrowserContext(
content::BrowserContext* browser_context);
static MediaEffectsServiceFactory* GetInstance();
MediaEffectsServiceFactory(const MediaEffectsServiceFactory&) = delete;
MediaEffectsServiceFactory& operator=(const MediaEffectsServiceFactory&) =
delete;
MediaEffectsServiceFactory(MediaEffectsServiceFactory&&) = delete;
MediaEffectsServiceFactory& operator=(MediaEffectsServiceFactory&&) = delete;
private:
friend base::NoDestructor<MediaEffectsServiceFactory>;
MediaEffectsServiceFactory();
~MediaEffectsServiceFactory() override;
// BrowserContextKeyedServiceFactory methods:
std::unique_ptr<KeyedService> BuildServiceInstanceForBrowserContext(
content::BrowserContext* browser_context) const override;
};
#endif // COMPONENTS_MEDIA_EFFECTS_MEDIA_EFFECTS_SERVICE_FACTORY_H_