| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |