Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: media/base/pipeline.h

Issue 212803004: Separate DemuxerHost from DataSourceHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/mock_demuxer_host.h ('k') | media/base/pipeline.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « media/base/mock_demuxer_host.h ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698