summaryrefslogtreecommitdiffstats
path: root/media/base/bind_to_loop.h
diff options
context:
space:
mode:
Diffstat (limited to 'media/base/bind_to_loop.h')
-rw-r--r--media/base/bind_to_loop.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/media/base/bind_to_loop.h b/media/base/bind_to_loop.h
index 013389a..5b9c694 100644
--- a/media/base/bind_to_loop.h
+++ b/media/base/bind_to_loop.h
@@ -161,6 +161,13 @@ static base::Callback<T> BindToLoop(
return base::Bind(&internal::TrampolineHelper<T>::Run, loop, cb);
}
+template<typename T>
+static base::Callback<T> BindToCurrentLoop(
+ const base::Callback<T>& cb) {
+ return base::Bind(&internal::TrampolineHelper<T>::Run,
+ base::MessageLoopProxy::current(), cb);
+}
+
} // namespace media
#endif // MEDIA_BASE_BIND_TO_LOOP_H_