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

Side by Side Diff: media/base/bind_to_loop.h.pump

Issue 11411332: Replace trampolining in FFmpegDemuxer with explicit thread calling convention checks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years 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 | « media/base/bind_to_loop.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 $$ This is a pump file for generating file templates. Pump is a python 1 $$ This is a pump file for generating file templates. Pump is a python
2 $$ script that is part of the Google Test suite of utilities. Description 2 $$ script that is part of the Google Test suite of utilities. Description
3 $$ can be found here: 3 $$ can be found here:
4 $$ 4 $$
5 $$ http://code.google.com/p/googletest/wiki/PumpManual 5 $$ http://code.google.com/p/googletest/wiki/PumpManual
6 $$ 6 $$
7 7
8 $$ See comment for MAX_ARITY in base/bind.h.pump. 8 $$ See comment for MAX_ARITY in base/bind.h.pump.
9 $var MAX_ARITY = 7 9 $var MAX_ARITY = 7
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 } // namespace internal 83 } // namespace internal
84 84
85 template<typename T> 85 template<typename T>
86 static base::Callback<T> BindToLoop( 86 static base::Callback<T> BindToLoop(
87 const scoped_refptr<base::MessageLoopProxy>& loop, 87 const scoped_refptr<base::MessageLoopProxy>& loop,
88 const base::Callback<T>& cb) { 88 const base::Callback<T>& cb) {
89 return base::Bind(&internal::TrampolineHelper<T>::Run, loop, cb); 89 return base::Bind(&internal::TrampolineHelper<T>::Run, loop, cb);
90 } 90 }
91 91
92 template<typename T>
93 static base::Callback<T> BindToCurrentLoop(
94 const base::Callback<T>& cb) {
95 return BindToLoop(base::MessageLoopProxy::current(), cb);
96 }
97
92 } // namespace media 98 } // namespace media
93 99
94 #endif // MEDIA_BASE_BIND_TO_LOOP_H_ 100 #endif // MEDIA_BASE_BIND_TO_LOOP_H_
OLDNEW
« no previous file with comments | « media/base/bind_to_loop.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698