| 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_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ | 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ |
| 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ | 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 void SetClient(const MediaPipelineClient& client); | 44 void SetClient(const MediaPipelineClient& client); |
| 45 void SetCdm(int cdm_id); | 45 void SetCdm(int cdm_id); |
| 46 | 46 |
| 47 // MediaPipelineBackendDelegate implementation: | 47 // MediaPipelineBackendDelegate implementation: |
| 48 void OnVideoResolutionChanged(MediaPipelineBackend::VideoDecoder* decoder, | 48 void OnVideoResolutionChanged(MediaPipelineBackend::VideoDecoder* decoder, |
| 49 const Size& size) override; | 49 const Size& size) override; |
| 50 void OnPushBufferComplete(MediaPipelineBackend::Decoder* decoder, | 50 void OnPushBufferComplete(MediaPipelineBackend::Decoder* decoder, |
| 51 MediaPipelineBackend::BufferStatus status) override; | 51 MediaPipelineBackend::BufferStatus status) override; |
| 52 void OnEndOfStream(MediaPipelineBackend::Decoder* decoder) override; | 52 void OnEndOfStream(MediaPipelineBackend::Decoder* decoder) override; |
| 53 void OnDecoderError(MediaPipelineBackend::Decoder* decoder) override; | 53 void OnDecoderError(MediaPipelineBackend::Decoder* decoder) override; |
| 54 void OnKeyStatusChanged(const std::string& key_id, |
| 55 CastKeyStatus key_status, |
| 56 uint32_t system_code) override; |
| 54 | 57 |
| 55 void InitializeAudio(const ::media::AudioDecoderConfig& config, | 58 void InitializeAudio(const ::media::AudioDecoderConfig& config, |
| 56 const AvPipelineClient& client, | 59 const AvPipelineClient& client, |
| 57 scoped_ptr<CodedFrameProvider> frame_provider, | 60 scoped_ptr<CodedFrameProvider> frame_provider, |
| 58 const ::media::PipelineStatusCB& status_cb); | 61 const ::media::PipelineStatusCB& status_cb); |
| 59 void InitializeVideo(const std::vector< ::media::VideoDecoderConfig>& configs, | 62 void InitializeVideo(const std::vector< ::media::VideoDecoderConfig>& configs, |
| 60 const VideoPipelineClient& client, | 63 const VideoPipelineClient& client, |
| 61 scoped_ptr<CodedFrameProvider> frame_provider, | 64 scoped_ptr<CodedFrameProvider> frame_provider, |
| 62 const ::media::PipelineStatusCB& status_cb); | 65 const ::media::PipelineStatusCB& status_cb); |
| 63 void StartPlayingFrom(base::TimeDelta time); | 66 void StartPlayingFrom(base::TimeDelta time); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 base::WeakPtr<MediaPipelineImpl> weak_this_; | 115 base::WeakPtr<MediaPipelineImpl> weak_this_; |
| 113 base::WeakPtrFactory<MediaPipelineImpl> weak_factory_; | 116 base::WeakPtrFactory<MediaPipelineImpl> weak_factory_; |
| 114 | 117 |
| 115 DISALLOW_COPY_AND_ASSIGN(MediaPipelineImpl); | 118 DISALLOW_COPY_AND_ASSIGN(MediaPipelineImpl); |
| 116 }; | 119 }; |
| 117 | 120 |
| 118 } // namespace media | 121 } // namespace media |
| 119 } // namespace chromecast | 122 } // namespace chromecast |
| 120 | 123 |
| 121 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ | 124 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_MEDIA_PIPELINE_IMPL_H_ |
| OLD | NEW |