| 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 MEDIA_RENDERERS_RENDERER_IMPL_H_ | 5 #ifndef MEDIA_RENDERERS_RENDERER_IMPL_H_ |
| 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ | 6 #define MEDIA_RENDERERS_RENDERER_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 const base::Closure& waiting_for_decryption_key_cb) final; | 56 const base::Closure& waiting_for_decryption_key_cb) final; |
| 57 void SetCdm(CdmContext* cdm_context, | 57 void SetCdm(CdmContext* cdm_context, |
| 58 const CdmAttachedCB& cdm_attached_cb) final; | 58 const CdmAttachedCB& cdm_attached_cb) final; |
| 59 void Flush(const base::Closure& flush_cb) final; | 59 void Flush(const base::Closure& flush_cb) final; |
| 60 void StartPlayingFrom(base::TimeDelta time) final; | 60 void StartPlayingFrom(base::TimeDelta time) final; |
| 61 void SetPlaybackRate(double playback_rate) final; | 61 void SetPlaybackRate(double playback_rate) final; |
| 62 void SetVolume(float volume) final; | 62 void SetVolume(float volume) final; |
| 63 base::TimeDelta GetMediaTime() final; | 63 base::TimeDelta GetMediaTime() final; |
| 64 bool HasAudio() final; | 64 bool HasAudio() final; |
| 65 bool HasVideo() final; | 65 bool HasVideo() final; |
| 66 bool AllowSuspend() final; |
| 66 | 67 |
| 67 // Helper functions for testing purposes. Must be called before Initialize(). | 68 // Helper functions for testing purposes. Must be called before Initialize(). |
| 68 void DisableUnderflowForTesting(); | 69 void DisableUnderflowForTesting(); |
| 69 void EnableClocklessVideoPlaybackForTesting(); | 70 void EnableClocklessVideoPlaybackForTesting(); |
| 70 void set_time_source_for_testing(TimeSource* time_source) { | 71 void set_time_source_for_testing(TimeSource* time_source) { |
| 71 time_source_ = time_source; | 72 time_source_ = time_source; |
| 72 } | 73 } |
| 73 void set_video_underflow_threshold_for_testing(base::TimeDelta threshold) { | 74 void set_video_underflow_threshold_for_testing(base::TimeDelta threshold) { |
| 74 video_underflow_threshold_ = threshold; | 75 video_underflow_threshold_ = threshold; |
| 75 } | 76 } |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 183 |
| 183 base::WeakPtr<RendererImpl> weak_this_; | 184 base::WeakPtr<RendererImpl> weak_this_; |
| 184 base::WeakPtrFactory<RendererImpl> weak_factory_; | 185 base::WeakPtrFactory<RendererImpl> weak_factory_; |
| 185 | 186 |
| 186 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 187 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
| 187 }; | 188 }; |
| 188 | 189 |
| 189 } // namespace media | 190 } // namespace media |
| 190 | 191 |
| 191 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ | 192 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ |
| OLD | NEW |