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

Side by Side Diff: content/browser/media/media_interface_proxy.h

Issue 2643743002: Mojify demuxers and allow running {Chunk/FFmpeg}Demuxer in a Utility Process (Closed)
Patch Set: Rebase and make sure to unbind mojom::DemuxerPtr on the bound thread during termination Created 3 years, 10 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
« no previous file with comments | « no previous file | content/browser/media/media_interface_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CONTENT_BROWSER_MEDIA_MEDIA_INTERFACE_PROXY_H_ 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_INTERFACE_PROXY_H_
6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERFACE_PROXY_H_ 6 #define CONTENT_BROWSER_MEDIA_MEDIA_INTERFACE_PROXY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 // Constructs MediaInterfaceProxy and bind |this| to the |request|. When 26 // Constructs MediaInterfaceProxy and bind |this| to the |request|. When
27 // connection error happens on the client interface, |error_handler| should be 27 // connection error happens on the client interface, |error_handler| should be
28 // fired. 28 // fired.
29 MediaInterfaceProxy(RenderFrameHost* render_frame_host, 29 MediaInterfaceProxy(RenderFrameHost* render_frame_host,
30 media::mojom::InterfaceFactoryRequest request, 30 media::mojom::InterfaceFactoryRequest request,
31 const base::Closure& error_handler); 31 const base::Closure& error_handler);
32 ~MediaInterfaceProxy() final; 32 ~MediaInterfaceProxy() final;
33 33
34 // media::mojom::InterfaceFactory implementation. 34 // media::mojom::InterfaceFactory implementation.
35 void CreateDemuxer(media::mojom::DemuxerRequest request) final;
36 void CreateSourceBuffer(media::mojom::SourceBufferRequest request) final;
35 void CreateAudioDecoder(media::mojom::AudioDecoderRequest request) final; 37 void CreateAudioDecoder(media::mojom::AudioDecoderRequest request) final;
36 void CreateVideoDecoder(media::mojom::VideoDecoderRequest request) final; 38 void CreateVideoDecoder(media::mojom::VideoDecoderRequest request) final;
37 void CreateRenderer(const std::string& audio_device_id, 39 void CreateRenderer(const std::string& audio_device_id,
38 media::mojom::RendererRequest request) final; 40 media::mojom::RendererRequest request) final;
39 void CreateCdm(media::mojom::ContentDecryptionModuleRequest request) final; 41 void CreateCdm(media::mojom::ContentDecryptionModuleRequest request) final;
40 42
41 private: 43 private:
42 media::mojom::InterfaceFactory* GetMediaInterfaceFactory(); 44 media::mojom::InterfaceFactory* GetMediaInterfaceFactory();
43 45
44 // Callback for connection error on |interface_factory_ptr_|. 46 // Callback for connection error on |interface_factory_ptr_|.
(...skipping 15 matching lines...) Expand all
60 media::mojom::InterfaceFactoryPtr interface_factory_ptr_; 62 media::mojom::InterfaceFactoryPtr interface_factory_ptr_;
61 63
62 base::ThreadChecker thread_checker_; 64 base::ThreadChecker thread_checker_;
63 65
64 DISALLOW_COPY_AND_ASSIGN(MediaInterfaceProxy); 66 DISALLOW_COPY_AND_ASSIGN(MediaInterfaceProxy);
65 }; 67 };
66 68
67 } // namespace content 69 } // namespace content
68 70
69 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERFACE_PROXY_H_ 71 #endif // CONTENT_BROWSER_MEDIA_MEDIA_INTERFACE_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/media/media_interface_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698