| 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/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
| 14 #include "media/base/media_export.h" | 14 #include "media/base/media_export.h" |
| 15 #include "media/base/pipeline.h" | 15 #include "media/base/pipeline.h" |
| 16 #include "media/base/stream_position.h" |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class SingleThreadTaskRunner; | 19 class SingleThreadTaskRunner; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace media { | 22 namespace media { |
| 22 | 23 |
| 23 class MediaLog; | 24 class MediaLog; |
| 24 class TextRenderer; | 25 class TextRenderer; |
| 25 | 26 |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, | 72 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, |
| 72 MediaLog* media_log); | 73 MediaLog* media_log); |
| 73 ~PipelineImpl() override; | 74 ~PipelineImpl() override; |
| 74 | 75 |
| 75 // Pipeline implementation. | 76 // Pipeline implementation. |
| 76 void Start(Demuxer* demuxer, | 77 void Start(Demuxer* demuxer, |
| 77 std::unique_ptr<Renderer> renderer, | 78 std::unique_ptr<Renderer> renderer, |
| 78 Client* client, | 79 Client* client, |
| 79 const PipelineStatusCB& seek_cb) override; | 80 const PipelineStatusCB& seek_cb) override; |
| 80 void Stop() override; | 81 void Stop() override; |
| 81 void Seek(base::TimeDelta time, const PipelineStatusCB& seek_cb) override; | 82 void Seek(StreamPosition position, const PipelineStatusCB& seek_cb) override; |
| 82 void Suspend(const PipelineStatusCB& suspend_cb) override; | 83 void Suspend(const PipelineStatusCB& suspend_cb) override; |
| 83 void Resume(std::unique_ptr<Renderer> renderer, | 84 void Resume(std::unique_ptr<Renderer> renderer, |
| 84 base::TimeDelta time, | 85 base::TimeDelta time, |
| 85 const PipelineStatusCB& seek_cb) override; | 86 const PipelineStatusCB& seek_cb) override; |
| 86 bool IsRunning() const override; | 87 bool IsRunning() const override; |
| 87 double GetPlaybackRate() const override; | 88 double GetPlaybackRate() const override; |
| 88 void SetPlaybackRate(double playback_rate) override; | 89 void SetPlaybackRate(double playback_rate) override; |
| 89 float GetVolume() const override; | 90 float GetVolume() const override; |
| 90 void SetVolume(float volume) override; | 91 void SetVolume(float volume) override; |
| 91 base::TimeDelta GetMediaTime() const override; | 92 base::TimeDelta GetMediaTime() const override; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 177 |
| 177 base::ThreadChecker thread_checker_; | 178 base::ThreadChecker thread_checker_; |
| 178 base::WeakPtrFactory<PipelineImpl> weak_factory_; | 179 base::WeakPtrFactory<PipelineImpl> weak_factory_; |
| 179 | 180 |
| 180 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); | 181 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); |
| 181 }; | 182 }; |
| 182 | 183 |
| 183 } // namespace media | 184 } // namespace media |
| 184 | 185 |
| 185 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ | 186 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ |
| OLD | NEW |