| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef MEDIA_BASE_PIPELINE_H_ |
| 6 #define MEDIA_BASE_PIPELINE_H_ | 6 #define MEDIA_BASE_PIPELINE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 // Initialization is a series of state transitions from "Created" through each | 69 // Initialization is a series of state transitions from "Created" through each |
| 70 // filter initialization state. When all filter initialization states have | 70 // filter initialization state. When all filter initialization states have |
| 71 // completed, we are implicitly in a "Paused" state. At that point we simulate | 71 // completed, we are implicitly in a "Paused" state. At that point we simulate |
| 72 // a Seek() to the beginning of the media to give filters a chance to preroll. | 72 // a Seek() to the beginning of the media to give filters a chance to preroll. |
| 73 // From then on the normal Seek() transitions are carried out and we start | 73 // From then on the normal Seek() transitions are carried out and we start |
| 74 // playing the media. | 74 // playing the media. |
| 75 // | 75 // |
| 76 // If any error ever happens, this object will transition to the "Error" state | 76 // If any error ever happens, this object will transition to the "Error" state |
| 77 // from any state. If Stop() is ever called, this object will transition to | 77 // from any state. If Stop() is ever called, this object will transition to |
| 78 // "Stopped" state. | 78 // "Stopped" state. |
| 79 class MEDIA_EXPORT Pipeline : public DemuxerHost { | 79 class MEDIA_EXPORT Pipeline : public DataSourceHost, public DemuxerHost { |
| 80 public: | 80 public: |
| 81 // Constructs a media pipeline that will execute on |task_runner|. | 81 // Constructs a media pipeline that will execute on |task_runner|. |
| 82 Pipeline(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, | 82 Pipeline(const scoped_refptr<base::SingleThreadTaskRunner>& task_runner, |
| 83 MediaLog* media_log); | 83 MediaLog* media_log); |
| 84 virtual ~Pipeline(); | 84 virtual ~Pipeline(); |
| 85 | 85 |
| 86 // Build a pipeline to using the given filter collection to construct a filter | 86 // Build a pipeline to using the given filter collection to construct a filter |
| 87 // chain, executing |seek_cb| when the initial seek/preroll has completed. | 87 // chain, executing |seek_cb| when the initial seek/preroll has completed. |
| 88 // | 88 // |
| 89 // |filter_collection| must be a complete collection containing a demuxer, | 89 // |filter_collection| must be a complete collection containing a demuxer, |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 scoped_ptr<SerialRunner> pending_callbacks_; | 433 scoped_ptr<SerialRunner> pending_callbacks_; |
| 434 | 434 |
| 435 base::ThreadChecker thread_checker_; | 435 base::ThreadChecker thread_checker_; |
| 436 | 436 |
| 437 DISALLOW_COPY_AND_ASSIGN(Pipeline); | 437 DISALLOW_COPY_AND_ASSIGN(Pipeline); |
| 438 }; | 438 }; |
| 439 | 439 |
| 440 } // namespace media | 440 } // namespace media |
| 441 | 441 |
| 442 #endif // MEDIA_BASE_PIPELINE_H_ | 442 #endif // MEDIA_BASE_PIPELINE_H_ |
| OLD | NEW |