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

Unified Diff: media/base/composite_filter.h

Issue 6226001: Change code to use ScopedRunnableMethodFactory & a static callback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | media/base/composite_filter.cc » ('j') | media/base/composite_filter.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/composite_filter.h
diff --git a/media/base/composite_filter.h b/media/base/composite_filter.h
index d39b79dd18adef958057b7e979aa974bf28c6dcd..c1bd8c0f0685fd6ccd07714eac97dca089bce2da 100644
--- a/media/base/composite_filter.h
+++ b/media/base/composite_filter.h
@@ -117,8 +117,8 @@ class CompositeFilter : public Filter {
// Helper function used by NewThreadSafeCallback() to make sure the
// method gets called on the right thread.
- void OnCallback(MessageLoop* message_loop,
- void (CompositeFilter::*method)());
+ static void OnCallback(MessageLoop* message_loop,
+ CancelableTask* task);
// Helper function that indicates whether SetError() calls can be forwarded
// to the host of this filter.
@@ -157,6 +157,8 @@ class CompositeFilter : public Filter {
// Error passed in the last SetError() call.
PipelineError error_;
+ scoped_ptr<ScopedRunnableMethodFactory<CompositeFilter> > runnable_factory_;
+
DISALLOW_COPY_AND_ASSIGN(CompositeFilter);
};
« no previous file with comments | « no previous file | media/base/composite_filter.cc » ('j') | media/base/composite_filter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698