| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ | 5 #ifndef CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ |
| 6 #define CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ | 6 #define CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
| 13 #include "chromecast/media/cma/pipeline/load_type.h" | 13 #include "chromecast/media/cma/pipeline/load_type.h" |
| 14 #include "chromecast/media/cma/pipeline/media_pipeline.h" | |
| 15 #include "chromecast/media/cma/pipeline/media_pipeline_client.h" | 14 #include "chromecast/media/cma/pipeline/media_pipeline_client.h" |
| 15 #include "chromecast/renderer/media/renderer_media_pipeline.h" |
| 16 #include "media/base/serial_runner.h" | 16 #include "media/base/serial_runner.h" |
| 17 | 17 |
| 18 namespace base { | 18 namespace base { |
| 19 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
| 20 } | 20 } |
| 21 | 21 |
| 22 namespace chromecast { | 22 namespace chromecast { |
| 23 namespace media { | 23 namespace media { |
| 24 class AudioPipelineProxy; | 24 class AudioPipelineProxy; |
| 25 class MediaChannelProxy; | 25 class MediaChannelProxy; |
| 26 class MediaPipelineProxyInternal; | 26 class MediaPipelineProxyInternal; |
| 27 class VideoPipelineProxy; | 27 class VideoPipelineProxy; |
| 28 | 28 |
| 29 class MediaPipelineProxy : public MediaPipeline { | 29 class MediaPipelineProxy : public RendererMediaPipeline { |
| 30 public: | 30 public: |
| 31 MediaPipelineProxy(int render_frame_id, | 31 MediaPipelineProxy(int render_frame_id, |
| 32 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 32 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 33 LoadType load_type); | 33 LoadType load_type); |
| 34 ~MediaPipelineProxy() override; | 34 ~MediaPipelineProxy() override; |
| 35 | 35 |
| 36 // MediaPipeline implementation. | 36 // RendererMediaPipeline implementation. |
| 37 void SetClient(const MediaPipelineClient& client) override; | 37 void SetClient(const MediaPipelineClient& client) override; |
| 38 void SetCdm(int cdm_id) override; | 38 void SetCdm(int cdm_id) override; |
| 39 AudioPipeline* GetAudioPipeline() const override; | 39 AudioPipeline* GetAudioPipeline() const override; |
| 40 VideoPipeline* GetVideoPipeline() const override; | 40 VideoPipeline* GetVideoPipeline() const override; |
| 41 void InitializeAudio( | 41 void InitializeAudio( |
| 42 const ::media::AudioDecoderConfig& config, | 42 const ::media::AudioDecoderConfig& config, |
| 43 scoped_ptr<CodedFrameProvider> frame_provider, | 43 scoped_ptr<CodedFrameProvider> frame_provider, |
| 44 const ::media::PipelineStatusCB& status_cb) override; | 44 const ::media::PipelineStatusCB& status_cb) override; |
| 45 void InitializeVideo( | 45 void InitializeVideo( |
| 46 const std::vector<::media::VideoDecoderConfig>& configs, | 46 const std::vector<::media::VideoDecoderConfig>& configs, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 75 base::WeakPtr<MediaPipelineProxy> weak_this_; | 75 base::WeakPtr<MediaPipelineProxy> weak_this_; |
| 76 base::WeakPtrFactory<MediaPipelineProxy> weak_factory_; | 76 base::WeakPtrFactory<MediaPipelineProxy> weak_factory_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(MediaPipelineProxy); | 78 DISALLOW_COPY_AND_ASSIGN(MediaPipelineProxy); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace media | 81 } // namespace media |
| 82 } // namespace chromecast | 82 } // namespace chromecast |
| 83 | 83 |
| 84 #endif // CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ | 84 #endif // CHROMECAST_RENDERER_MEDIA_MEDIA_PIPELINE_PROXY_H_ |
| OLD | NEW |