| 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 "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.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" |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 PipelineStatusCB init_cb_; | 147 PipelineStatusCB init_cb_; |
| 148 base::Closure flush_cb_; | 148 base::Closure flush_cb_; |
| 149 | 149 |
| 150 scoped_ptr<AudioRenderer> audio_renderer_; | 150 scoped_ptr<AudioRenderer> audio_renderer_; |
| 151 scoped_ptr<VideoRenderer> video_renderer_; | 151 scoped_ptr<VideoRenderer> video_renderer_; |
| 152 | 152 |
| 153 // Renderer-provided time source used to control playback. | 153 // Renderer-provided time source used to control playback. |
| 154 TimeSource* time_source_; | 154 TimeSource* time_source_; |
| 155 scoped_ptr<WallClockTimeSource> wall_clock_time_source_; | 155 scoped_ptr<WallClockTimeSource> wall_clock_time_source_; |
| 156 bool time_ticking_; | 156 bool time_ticking_; |
| 157 float playback_rate_; |
| 157 | 158 |
| 158 // The time to start playback from after starting/seeking has completed. | 159 // The time to start playback from after starting/seeking has completed. |
| 159 base::TimeDelta start_time_; | 160 base::TimeDelta start_time_; |
| 160 | 161 |
| 161 BufferingState audio_buffering_state_; | 162 BufferingState audio_buffering_state_; |
| 162 BufferingState video_buffering_state_; | 163 BufferingState video_buffering_state_; |
| 163 | 164 |
| 164 // Whether we've received the audio/video ended events. | 165 // Whether we've received the audio/video ended events. |
| 165 bool audio_ended_; | 166 bool audio_ended_; |
| 166 bool video_ended_; | 167 bool video_ended_; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 187 | 188 |
| 188 base::WeakPtr<RendererImpl> weak_this_; | 189 base::WeakPtr<RendererImpl> weak_this_; |
| 189 base::WeakPtrFactory<RendererImpl> weak_factory_; | 190 base::WeakPtrFactory<RendererImpl> weak_factory_; |
| 190 | 191 |
| 191 DISALLOW_COPY_AND_ASSIGN(RendererImpl); | 192 DISALLOW_COPY_AND_ASSIGN(RendererImpl); |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace media | 195 } // namespace media |
| 195 | 196 |
| 196 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ | 197 #endif // MEDIA_RENDERERS_RENDERER_IMPL_H_ |
| OLD | NEW |