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

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: Created 4 years, 8 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 23 matching lines...) Expand all
34 public: 34 public:
35 ServiceFactoryImpl(mojo::InterfaceRequest<interfaces::ServiceFactory> request, 35 ServiceFactoryImpl(mojo::InterfaceRequest<interfaces::ServiceFactory> request,
36 shell::mojom::InterfaceProvider* interfaces, 36 shell::mojom::InterfaceProvider* interfaces,
37 scoped_refptr<MediaLog> media_log, 37 scoped_refptr<MediaLog> media_log,
38 std::unique_ptr<shell::MessageLoopRef> parent_app_refcount, 38 std::unique_ptr<shell::MessageLoopRef> parent_app_refcount,
39 MojoMediaClient* mojo_media_client); 39 MojoMediaClient* mojo_media_client);
40 ~ServiceFactoryImpl() final; 40 ~ServiceFactoryImpl() final;
41 41
42 // interfaces::ServiceFactory implementation. 42 // interfaces::ServiceFactory implementation.
43 void CreateAudioDecoder( 43 void CreateAudioDecoder(
44 mojo::InterfaceRequest<interfaces::AudioDecoder> audio_decoder) final; 44 mojo::InterfaceRequest<interfaces::AudioDecoder> request) final;
45 void CreateRenderer( 45 void CreateRenderer(
46 mojo::InterfaceRequest<interfaces::Renderer> renderer) final; 46 mojo::InterfaceRequest<interfaces::Renderer> request) final;
47 void CreateCdm( 47 void CreateCdm(mojo::InterfaceRequest<interfaces::ContentDecryptionModule>
48 mojo::InterfaceRequest<interfaces::ContentDecryptionModule> cdm) final; 48 request) final;
49 void CreateVideoDecoder(
50 mojo::InterfaceRequest<interfaces::VideoDecoder> request) final;
xhwang 2016/04/20 21:09:27 nit: this could be interfaces::VideoDecoderRequest
sandersd (OOO until July 31) 2016/05/03 00:54:37 Done.
49 51
50 private: 52 private:
51 #if defined(ENABLE_MOJO_RENDERER) 53 #if defined(ENABLE_MOJO_RENDERER)
52 RendererFactory* GetRendererFactory(); 54 RendererFactory* GetRendererFactory();
53 55
54 std::unique_ptr<RendererFactory> renderer_factory_; 56 std::unique_ptr<RendererFactory> renderer_factory_;
55 #endif // defined(ENABLE_MOJO_RENDERER) 57 #endif // defined(ENABLE_MOJO_RENDERER)
56 58
57 #if defined(ENABLE_MOJO_CDM) 59 #if defined(ENABLE_MOJO_CDM)
58 CdmFactory* GetCdmFactory(); 60 CdmFactory* GetCdmFactory();
59 61
60 std::unique_ptr<CdmFactory> cdm_factory_; 62 std::unique_ptr<CdmFactory> cdm_factory_;
61 #endif // defined(ENABLE_MOJO_CDM) 63 #endif // defined(ENABLE_MOJO_CDM)
62 64
63 MojoCdmServiceContext cdm_service_context_; 65 MojoCdmServiceContext cdm_service_context_;
64 mojo::StrongBinding<interfaces::ServiceFactory> binding_; 66 mojo::StrongBinding<interfaces::ServiceFactory> binding_;
65 shell::mojom::InterfaceProvider* interfaces_; 67 shell::mojom::InterfaceProvider* interfaces_;
66 scoped_refptr<MediaLog> media_log_; 68 scoped_refptr<MediaLog> media_log_;
67 std::unique_ptr<shell::MessageLoopRef> parent_app_refcount_; 69 std::unique_ptr<shell::MessageLoopRef> parent_app_refcount_;
68 MojoMediaClient* mojo_media_client_; 70 MojoMediaClient* mojo_media_client_;
69 71
70 DISALLOW_COPY_AND_ASSIGN(ServiceFactoryImpl); 72 DISALLOW_COPY_AND_ASSIGN(ServiceFactoryImpl);
71 }; 73 };
72 74
73 } // namespace media 75 } // namespace media
74 76
75 #endif // MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_ 77 #endif // MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698