Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1041)

Unified Diff: media/mojo/services/service_factory_impl.h

Issue 2444623002: media: Rename ServiceFactory to InterfaceFactory (Closed)
Patch Set: media: Rename ServiceFactory to InterfaceFactory Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/media_service.cc ('k') | media/mojo/services/service_factory_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/service_factory_impl.h
diff --git a/media/mojo/services/service_factory_impl.h b/media/mojo/services/service_factory_impl.h
deleted file mode 100644
index 85d22a12133cb752b75c7b87197253f0dbd015c2..0000000000000000000000000000000000000000
--- a/media/mojo/services/service_factory_impl.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_
-#define MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "media/mojo/interfaces/service_factory.mojom.h"
-#include "media/mojo/services/mojo_cdm_service_context.h"
-#include "services/service_manager/public/cpp/connector.h"
-#include "services/service_manager/public/cpp/service_context_ref.h"
-
-namespace service_manager {
-namespace mojom {
-class InterfaceProvider;
-}
-}
-
-namespace media {
-
-class CdmFactory;
-class MediaLog;
-class MojoMediaClient;
-class RendererFactory;
-
-class ServiceFactoryImpl : public mojom::ServiceFactory {
- public:
- ServiceFactoryImpl(
- service_manager::mojom::InterfaceProviderPtr interfaces,
- scoped_refptr<MediaLog> media_log,
- std::unique_ptr<service_manager::ServiceContextRef> connection_ref,
- MojoMediaClient* mojo_media_client);
- ~ServiceFactoryImpl() final;
-
- // mojom::ServiceFactory implementation.
- void CreateAudioDecoder(mojom::AudioDecoderRequest request) final;
- void CreateVideoDecoder(mojom::VideoDecoderRequest request) final;
- void CreateRenderer(const std::string& audio_device_id,
- mojom::RendererRequest request) final;
- void CreateCdm(mojom::ContentDecryptionModuleRequest request) final;
-
- private:
-#if defined(ENABLE_MOJO_RENDERER)
- RendererFactory* GetRendererFactory();
-#endif // defined(ENABLE_MOJO_RENDERER)
-
-#if defined(ENABLE_MOJO_CDM)
- CdmFactory* GetCdmFactory();
-#endif // defined(ENABLE_MOJO_CDM)
-
- MojoCdmServiceContext cdm_service_context_;
-
-#if defined(ENABLE_MOJO_RENDERER)
- std::unique_ptr<RendererFactory> renderer_factory_;
-#endif // defined(ENABLE_MOJO_RENDERER)
-
-#if defined(ENABLE_MOJO_CDM)
- std::unique_ptr<CdmFactory> cdm_factory_;
- service_manager::mojom::InterfaceProviderPtr interfaces_;
-#endif // defined(ENABLE_MOJO_CDM)
-
- scoped_refptr<MediaLog> media_log_;
- std::unique_ptr<service_manager::ServiceContextRef> connection_ref_;
- MojoMediaClient* mojo_media_client_;
-
- DISALLOW_COPY_AND_ASSIGN(ServiceFactoryImpl);
-};
-
-} // namespace media
-
-#endif // MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_
« no previous file with comments | « media/mojo/services/media_service.cc ('k') | media/mojo/services/service_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698