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

Side by Side Diff: media/mojo/services/service_factory_impl.h

Issue 1899363002: Finish plumbing MojoVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_ 5 #ifndef MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_
6 #define MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_ 6 #define MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 class ServiceFactoryImpl : public interfaces::ServiceFactory { 30 class ServiceFactoryImpl : public interfaces::ServiceFactory {
31 public: 31 public:
32 ServiceFactoryImpl(mojo::InterfaceRequest<interfaces::ServiceFactory> request, 32 ServiceFactoryImpl(mojo::InterfaceRequest<interfaces::ServiceFactory> request,
33 shell::mojom::InterfaceProvider* interfaces, 33 shell::mojom::InterfaceProvider* interfaces,
34 scoped_refptr<MediaLog> media_log, 34 scoped_refptr<MediaLog> media_log,
35 std::unique_ptr<shell::ShellConnectionRef> connection_ref, 35 std::unique_ptr<shell::ShellConnectionRef> connection_ref,
36 MojoMediaClient* mojo_media_client); 36 MojoMediaClient* mojo_media_client);
37 ~ServiceFactoryImpl() final; 37 ~ServiceFactoryImpl() final;
38 38
39 // interfaces::ServiceFactory implementation. 39 // interfaces::ServiceFactory implementation.
40 void CreateAudioDecoder( 40 void CreateAudioDecoder(interfaces::AudioDecoderRequest request) final;
41 mojo::InterfaceRequest<interfaces::AudioDecoder> audio_decoder) final; 41 void CreateVideoDecoder(interfaces::VideoDecoderRequest request) final;
42 void CreateRenderer( 42 void CreateRenderer(interfaces::RendererRequest request) final;
43 mojo::InterfaceRequest<interfaces::Renderer> renderer) final; 43 void CreateCdm(interfaces::ContentDecryptionModuleRequest request) final;
44 void CreateCdm(
45 mojo::InterfaceRequest<interfaces::ContentDecryptionModule> cdm) final;
46 44
47 private: 45 private:
48 #if defined(ENABLE_MOJO_RENDERER) 46 #if defined(ENABLE_MOJO_RENDERER)
49 RendererFactory* GetRendererFactory(); 47 RendererFactory* GetRendererFactory();
50 48
51 std::unique_ptr<RendererFactory> renderer_factory_; 49 std::unique_ptr<RendererFactory> renderer_factory_;
52 #endif // defined(ENABLE_MOJO_RENDERER) 50 #endif // defined(ENABLE_MOJO_RENDERER)
53 51
54 #if defined(ENABLE_MOJO_CDM) 52 #if defined(ENABLE_MOJO_CDM)
55 CdmFactory* GetCdmFactory(); 53 CdmFactory* GetCdmFactory();
56 54
57 std::unique_ptr<CdmFactory> cdm_factory_; 55 std::unique_ptr<CdmFactory> cdm_factory_;
58 #endif // defined(ENABLE_MOJO_CDM) 56 #endif // defined(ENABLE_MOJO_CDM)
59 57
60 MojoCdmServiceContext cdm_service_context_; 58 MojoCdmServiceContext cdm_service_context_;
61 mojo::StrongBinding<interfaces::ServiceFactory> binding_; 59 mojo::StrongBinding<interfaces::ServiceFactory> binding_;
62 shell::mojom::InterfaceProvider* interfaces_; 60 shell::mojom::InterfaceProvider* interfaces_;
63 scoped_refptr<MediaLog> media_log_; 61 scoped_refptr<MediaLog> media_log_;
64 std::unique_ptr<shell::ShellConnectionRef> connection_ref_; 62 std::unique_ptr<shell::ShellConnectionRef> connection_ref_;
65 MojoMediaClient* mojo_media_client_; 63 MojoMediaClient* mojo_media_client_;
66 64
67 DISALLOW_COPY_AND_ASSIGN(ServiceFactoryImpl); 65 DISALLOW_COPY_AND_ASSIGN(ServiceFactoryImpl);
68 }; 66 };
69 67
70 } // namespace media 68 } // namespace media
71 69
72 #endif // MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_ 70 #endif // MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698