OLD | NEW |
---|---|
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 Loading... | |
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( | |
scherkus (not reviewing)
2012/12/07 22:18:55
forgot I should have updated the pump file!
| |
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_ |
OLD | NEW |