| 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_CMA_RENDERER_H_ | 5 #ifndef CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ |
| 6 #define CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ | 6 #define CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 const base::Closure& ended_cb, | 51 const base::Closure& ended_cb, |
| 52 const ::media::PipelineStatusCB& error_cb, | 52 const ::media::PipelineStatusCB& error_cb, |
| 53 const base::Closure& waiting_for_decryption_key_cb) override; | 53 const base::Closure& waiting_for_decryption_key_cb) override; |
| 54 void Flush(const base::Closure& flush_cb) override; | 54 void Flush(const base::Closure& flush_cb) override; |
| 55 void StartPlayingFrom(base::TimeDelta time) override; | 55 void StartPlayingFrom(base::TimeDelta time) override; |
| 56 void SetPlaybackRate(double playback_rate) override; | 56 void SetPlaybackRate(double playback_rate) override; |
| 57 void SetVolume(float volume) override; | 57 void SetVolume(float volume) override; |
| 58 base::TimeDelta GetMediaTime() override; | 58 base::TimeDelta GetMediaTime() override; |
| 59 bool HasAudio() override; | 59 bool HasAudio() override; |
| 60 bool HasVideo() override; | 60 bool HasVideo() override; |
| 61 bool AllowSuspend() override; |
| 61 void SetCdm(::media::CdmContext* cdm_context, | 62 void SetCdm(::media::CdmContext* cdm_context, |
| 62 const ::media::CdmAttachedCB& cdm_attached_cb) override; | 63 const ::media::CdmAttachedCB& cdm_attached_cb) override; |
| 63 | 64 |
| 64 private: | 65 private: |
| 65 enum State { | 66 enum State { |
| 66 kUninitialized, | 67 kUninitialized, |
| 67 kPlaying, | 68 kPlaying, |
| 68 kFlushed, | 69 kFlushed, |
| 69 kError, | 70 kError, |
| 70 }; | 71 }; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 base::WeakPtr<CmaRenderer> weak_this_; | 151 base::WeakPtr<CmaRenderer> weak_this_; |
| 151 base::WeakPtrFactory<CmaRenderer> weak_factory_; | 152 base::WeakPtrFactory<CmaRenderer> weak_factory_; |
| 152 | 153 |
| 153 DISALLOW_COPY_AND_ASSIGN(CmaRenderer); | 154 DISALLOW_COPY_AND_ASSIGN(CmaRenderer); |
| 154 }; | 155 }; |
| 155 | 156 |
| 156 } // namespace media | 157 } // namespace media |
| 157 } // namespace chromecast | 158 } // namespace chromecast |
| 158 | 159 |
| 159 #endif // CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ | 160 #endif // CHROMECAST_RENDERER_MEDIA_CMA_RENDERER_H_ |
| OLD | NEW |