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

Unified Diff: media/base/filters.h

Issue 9718013: Merge FilterStatusCB into PipelineStatusCB. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/composite_filter_unittest.cc ('k') | media/base/filters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/filters.h
diff --git a/media/base/filters.h b/media/base/filters.h
index 242af5cfeb6d8269fe1595cafdab276a4c5a6622..4823cf8935509eeb901e24c8aebe826dfa3b7c1d 100644
--- a/media/base/filters.h
+++ b/media/base/filters.h
@@ -45,15 +45,10 @@ class DemuxerStream;
class Filter;
class FilterHost;
-struct PipelineStatistics;
-
-// Used for completing asynchronous methods.
-typedef base::Callback<void(PipelineStatus)> FilterStatusCB;
-
// These functions copy |*cb|, call Reset() on |*cb|, and then call Run()
// on the copy. This is used in the common case where you need to clear
// a callback member variable before running the callback.
-MEDIA_EXPORT void ResetAndRunCB(FilterStatusCB* cb, PipelineStatus status);
+MEDIA_EXPORT void ResetAndRunCB(PipelineStatusCB* cb, PipelineStatus status);
MEDIA_EXPORT void ResetAndRunCB(base::Closure* cb);
class MEDIA_EXPORT Filter : public base::RefCountedThreadSafe<Filter> {
@@ -98,7 +93,7 @@ class MEDIA_EXPORT Filter : public base::RefCountedThreadSafe<Filter> {
// Carry out any actions required to seek to the given time, executing the
// callback upon completion.
- virtual void Seek(base::TimeDelta time, const FilterStatusCB& callback);
+ virtual void Seek(base::TimeDelta time, const PipelineStatusCB& callback);
// This method is called from the pipeline when the audio renderer
// is disabled. Filters can ignore the notification if they do not
« no previous file with comments | « media/base/composite_filter_unittest.cc ('k') | media/base/filters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698