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

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

Issue 11428095: Pass in media message loop to VideoRendererBase and enforce calling on the right thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GVD 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 | « no previous file | media/filters/decrypting_video_decoder.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 file was GENERATED by command: 1 // This file was GENERATED by command:
2 // pump.py bind_to_loop.h.pump 2 // pump.py bind_to_loop.h.pump
3 // DO NOT EDIT BY HAND!!! 3 // DO NOT EDIT BY HAND!!!
4 4
5 5
6 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 6 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
7 // Use of this source code is governed by a BSD-style license that can be 7 // Use of this source code is governed by a BSD-style license that can be
8 // found in the LICENSE file. 8 // found in the LICENSE file.
9 9
10 #ifndef MEDIA_BASE_BIND_TO_LOOP_H_ 10 #ifndef MEDIA_BASE_BIND_TO_LOOP_H_
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 154
155 } // namespace internal 155 } // namespace internal
156 156
157 template<typename T> 157 template<typename T>
158 static base::Callback<T> BindToLoop( 158 static base::Callback<T> BindToLoop(
159 const scoped_refptr<base::MessageLoopProxy>& loop, 159 const scoped_refptr<base::MessageLoopProxy>& loop,
160 const base::Callback<T>& cb) { 160 const base::Callback<T>& cb) {
161 return base::Bind(&internal::TrampolineHelper<T>::Run, loop, cb); 161 return base::Bind(&internal::TrampolineHelper<T>::Run, loop, cb);
162 } 162 }
163 163
164 template<typename T>
165 static base::Callback<T> BindToCurrentLoop(
166 const base::Callback<T>& cb) {
167 return base::Bind(&internal::TrampolineHelper<T>::Run,
168 base::MessageLoopProxy::current(), cb);
169 }
170
164 } // namespace media 171 } // namespace media
165 172
166 #endif // MEDIA_BASE_BIND_TO_LOOP_H_ 173 #endif // MEDIA_BASE_BIND_TO_LOOP_H_
OLDNEW
« no previous file with comments | « no previous file | media/filters/decrypting_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698