| 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 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class SingleThreadTaskRunner; | 18 class SingleThreadTaskRunner; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace media { | 21 namespace media { |
| 22 | 22 |
| 23 class MediaLog; | 23 class MediaLog; |
| 24 class TextRenderer; | |
| 25 | 24 |
| 26 // Pipeline runs the media pipeline. Filters are created and called on the | 25 // Pipeline runs the media pipeline. Filters are created and called on the |
| 27 // task runner injected into this object. Pipeline works like a state | 26 // task runner injected into this object. Pipeline works like a state |
| 28 // machine to perform asynchronous initialization, pausing, seeking and playing. | 27 // machine to perform asynchronous initialization, pausing, seeking and playing. |
| 29 // | 28 // |
| 30 // Here's a state diagram that describes the lifetime of this object. | 29 // Here's a state diagram that describes the lifetime of this object. |
| 31 // | 30 // |
| 32 // [ *Created ] [ Any State ] | 31 // [ *Created ] [ Any State ] |
| 33 // | Start() | Stop() / SetError() | 32 // | Start() | Stop() / SetError() |
| 34 // V V | 33 // V V |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 175 |
| 177 base::ThreadChecker thread_checker_; | 176 base::ThreadChecker thread_checker_; |
| 178 base::WeakPtrFactory<PipelineImpl> weak_factory_; | 177 base::WeakPtrFactory<PipelineImpl> weak_factory_; |
| 179 | 178 |
| 180 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); | 179 DISALLOW_COPY_AND_ASSIGN(PipelineImpl); |
| 181 }; | 180 }; |
| 182 | 181 |
| 183 } // namespace media | 182 } // namespace media |
| 184 | 183 |
| 185 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ | 184 #endif // MEDIA_BASE_PIPELINE_IMPL_H_ |
| OLD | NEW |