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

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

Issue 15993018: Reland: Use a shared thread for media operations (round 3). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « content/test/layouttest_support.cc ('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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 const PipelineStatusCB& error_cb, 107 const PipelineStatusCB& error_cb,
108 const PipelineStatusCB& seek_cb, 108 const PipelineStatusCB& seek_cb,
109 const BufferingStateCB& buffering_state_cb, 109 const BufferingStateCB& buffering_state_cb,
110 const base::Closure& duration_change_cb); 110 const base::Closure& duration_change_cb);
111 111
112 // Asynchronously stops the pipeline, executing |stop_cb| when the pipeline 112 // Asynchronously stops the pipeline, executing |stop_cb| when the pipeline
113 // teardown has completed. 113 // teardown has completed.
114 // 114 //
115 // Stop() must complete before destroying the pipeline. It it permissible to 115 // Stop() must complete before destroying the pipeline. It it permissible to
116 // call Stop() at any point during the lifetime of the pipeline. 116 // call Stop() at any point during the lifetime of the pipeline.
117 //
118 // It is safe to delete the pipeline during the execution of |stop_cb|.
117 void Stop(const base::Closure& stop_cb); 119 void Stop(const base::Closure& stop_cb);
118 120
119 // Attempt to seek to the position specified by time. |seek_cb| will be 121 // Attempt to seek to the position specified by time. |seek_cb| will be
120 // executed when the all filters in the pipeline have processed the seek. 122 // executed when the all filters in the pipeline have processed the seek.
121 // 123 //
122 // Clients are expected to call GetMediaTime() to check whether the seek 124 // Clients are expected to call GetMediaTime() to check whether the seek
123 // succeeded. 125 // succeeded.
124 // 126 //
125 // It is an error to call this method if the pipeline has not started. 127 // It is an error to call this method if the pipeline has not started.
126 void Seek(base::TimeDelta time, const PipelineStatusCB& seek_cb); 128 void Seek(base::TimeDelta time, const PipelineStatusCB& seek_cb);
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 scoped_ptr<SerialRunner> pending_callbacks_; 444 scoped_ptr<SerialRunner> pending_callbacks_;
443 445
444 base::ThreadChecker thread_checker_; 446 base::ThreadChecker thread_checker_;
445 447
446 DISALLOW_COPY_AND_ASSIGN(Pipeline); 448 DISALLOW_COPY_AND_ASSIGN(Pipeline);
447 }; 449 };
448 450
449 } // namespace media 451 } // namespace media
450 452
451 #endif // MEDIA_BASE_PIPELINE_H_ 453 #endif // MEDIA_BASE_PIPELINE_H_
OLDNEW
« no previous file with comments | « content/test/layouttest_support.cc ('k') | media/base/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698