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

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

Issue 2411573002: media: Use new wrapper types for media mojo interfaces (Closed)
Patch Set: comments addressed 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 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 public: 30 public:
31 ServiceFactoryImpl(shell::mojom::InterfaceProviderPtr interfaces, 31 ServiceFactoryImpl(shell::mojom::InterfaceProviderPtr interfaces,
32 scoped_refptr<MediaLog> media_log, 32 scoped_refptr<MediaLog> media_log,
33 std::unique_ptr<shell::ServiceContextRef> connection_ref, 33 std::unique_ptr<shell::ServiceContextRef> connection_ref,
34 MojoMediaClient* mojo_media_client); 34 MojoMediaClient* mojo_media_client);
35 ~ServiceFactoryImpl() final; 35 ~ServiceFactoryImpl() final;
36 36
37 // mojom::ServiceFactory implementation. 37 // mojom::ServiceFactory implementation.
38 void CreateAudioDecoder(mojom::AudioDecoderRequest request) final; 38 void CreateAudioDecoder(mojom::AudioDecoderRequest request) final;
39 void CreateVideoDecoder(mojom::VideoDecoderRequest request) final; 39 void CreateVideoDecoder(mojom::VideoDecoderRequest request) final;
40 void CreateRenderer(const mojo::String& audio_device_id, 40 void CreateRenderer(const std::string& audio_device_id,
41 mojom::RendererRequest request) final; 41 mojom::RendererRequest request) final;
42 void CreateCdm(mojom::ContentDecryptionModuleRequest request) final; 42 void CreateCdm(mojom::ContentDecryptionModuleRequest request) final;
43 43
44 private: 44 private:
45 #if defined(ENABLE_MOJO_RENDERER) 45 #if defined(ENABLE_MOJO_RENDERER)
46 RendererFactory* GetRendererFactory(); 46 RendererFactory* GetRendererFactory();
47 #endif // defined(ENABLE_MOJO_RENDERER) 47 #endif // defined(ENABLE_MOJO_RENDERER)
48 48
49 #if defined(ENABLE_MOJO_CDM) 49 #if defined(ENABLE_MOJO_CDM)
50 CdmFactory* GetCdmFactory(); 50 CdmFactory* GetCdmFactory();
(...skipping 13 matching lines...) Expand all
64 scoped_refptr<MediaLog> media_log_; 64 scoped_refptr<MediaLog> media_log_;
65 std::unique_ptr<shell::ServiceContextRef> connection_ref_; 65 std::unique_ptr<shell::ServiceContextRef> connection_ref_;
66 MojoMediaClient* mojo_media_client_; 66 MojoMediaClient* mojo_media_client_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ServiceFactoryImpl); 68 DISALLOW_COPY_AND_ASSIGN(ServiceFactoryImpl);
69 }; 69 };
70 70
71 } // namespace media 71 } // namespace media
72 72
73 #endif // MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_ 73 #endif // MEDIA_MOJO_SERVICES_SERVICE_FACTORY_IMPL_H_
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_provision_fetcher.cc ('k') | media/mojo/services/service_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698