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

Unified Diff: media/base/filters.cc

Issue 9717021: Make Callback::Reset() return a copy to support use-cases where Run() ends up modifying |*this|. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no base:: 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/filters.h ('k') | media/filters/audio_renderer_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/filters.cc
diff --git a/media/base/filters.cc b/media/base/filters.cc
index 11e7cba0ddf0c17f7c43e57785a4d921a478a323..910f1e7b8a437b2acd5c11ee438f41bcbf8892c1 100644
--- a/media/base/filters.cc
+++ b/media/base/filters.cc
@@ -8,20 +8,6 @@
namespace media {
-void ResetAndRunCB(PipelineStatusCB* cb, PipelineStatus status) {
- DCHECK(!cb->is_null());
- PipelineStatusCB tmp_cb(*cb);
- cb->Reset();
- tmp_cb.Run(status);
-}
-
-void ResetAndRunCB(base::Closure* cb) {
- DCHECK(!cb->is_null());
- base::Closure tmp_cb(*cb);
- cb->Reset();
- tmp_cb.Run();
-}
-
Filter::Filter() : host_(NULL) {}
Filter::~Filter() {}
« no previous file with comments | « media/base/filters.h ('k') | media/filters/audio_renderer_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698