| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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_BASE_PIPELINE_IMPL_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_IMPL_H_ |
| 6 #define MEDIA_BASE_PIPELINE_IMPL_H_ | 6 #define MEDIA_BASE_PIPELINE_IMPL_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void AddTextStream(DemuxerStream* text_stream, | 149 void AddTextStream(DemuxerStream* text_stream, |
| 150 const TextTrackConfig& config) override; | 150 const TextTrackConfig& config) override; |
| 151 void RemoveTextStream(DemuxerStream* text_stream) override; | 151 void RemoveTextStream(DemuxerStream* text_stream) override; |
| 152 | 152 |
| 153 // RendererClient implementation. | 153 // RendererClient implementation. |
| 154 void OnError(PipelineStatus error) override; | 154 void OnError(PipelineStatus error) override; |
| 155 void OnEnded() override; | 155 void OnEnded() override; |
| 156 void OnStatisticsUpdate(const PipelineStatistics& stats) override; | 156 void OnStatisticsUpdate(const PipelineStatistics& stats) override; |
| 157 void OnBufferingStateChange(BufferingState state) override; | 157 void OnBufferingStateChange(BufferingState state) override; |
| 158 void OnWaitingForDecryptionKey() override; | 158 void OnWaitingForDecryptionKey() override; |
| 159 void OnVideoNaturalSizeChange(const gfx::Size& size) override; |
| 160 void OnVideoOpacityChange(bool opaque) override; |
| 159 | 161 |
| 160 // The following "task" methods correspond to the public methods, but these | 162 // The following "task" methods correspond to the public methods, but these |
| 161 // methods are run as the result of posting a task to the Pipeline's | 163 // methods are run as the result of posting a task to the Pipeline's |
| 162 // task runner. | 164 // task runner. |
| 163 void StartTask(); | 165 void StartTask(); |
| 164 | 166 |
| 165 // Suspends the pipeline, discarding the current renderer. | 167 // Suspends the pipeline, discarding the current renderer. |
| 166 void SuspendTask(const PipelineStatusCB& suspend_cb); | 168 void SuspendTask(const PipelineStatusCB& suspend_cb); |
| 167 | 169 |
| 168 // Resumes the pipeline with a new renderer, and initializes it with a seek. | 170 // Resumes the pipeline with a new renderer, and initializes it with a seek. |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 // Declared last so that weak pointers will be invalidated before all other | 337 // Declared last so that weak pointers will be invalidated before all other |
| 336 // member variables. | 338 // member variables. |
| 337 base::WeakPtrFactory<PipelineImpl> weak_factory_; | 339 base::WeakPtrFactory<PipelineImpl> weak_factory_; |
| 338 | 340 |
| 339 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); | 341 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); |
| 340 }; | 342 }; |
| 341 | 343 |
| 342 } // namespace media | 344 } // namespace media |
| 343 | 345 |
| 344 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ | 346 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ |
| OLD | NEW |