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

Side by Side Diff: media/base/serial_runner.cc

Issue 16514006: Update includes of message_loop_proxy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/bind_to_loop.h.pump ('k') | media/filters/audio_decoder_selector.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/serial_runner.h" 5 #include "media/base/serial_runner.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
11 11
12 namespace media { 12 namespace media {
13 13
14 // Converts a bound function accepting a Closure into a bound function 14 // Converts a bound function accepting a Closure into a bound function
15 // accepting a PipelineStatusCB. Since closures have no way of reporting a 15 // accepting a PipelineStatusCB. Since closures have no way of reporting a
16 // status |status_cb| is executed with PIPELINE_OK. 16 // status |status_cb| is executed with PIPELINE_OK.
17 static void RunBoundClosure( 17 static void RunBoundClosure(
18 const SerialRunner::BoundClosure& bound_closure, 18 const SerialRunner::BoundClosure& bound_closure,
19 const PipelineStatusCB& status_cb) { 19 const PipelineStatusCB& status_cb) {
20 bound_closure.Run(base::Bind(status_cb, PIPELINE_OK)); 20 bound_closure.Run(base::Bind(status_cb, PIPELINE_OK));
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 base::ResetAndReturn(&done_cb_).Run(last_status); 81 base::ResetAndReturn(&done_cb_).Run(last_status);
82 return; 82 return;
83 } 83 }
84 84
85 BoundPipelineStatusCB bound_fn = bound_fns_.Pop(); 85 BoundPipelineStatusCB bound_fn = bound_fns_.Pop();
86 bound_fn.Run(base::Bind(&RunOnMessageLoop, message_loop_, base::Bind( 86 bound_fn.Run(base::Bind(&RunOnMessageLoop, message_loop_, base::Bind(
87 &SerialRunner::RunNextInSeries, weak_this_.GetWeakPtr()))); 87 &SerialRunner::RunNextInSeries, weak_this_.GetWeakPtr())));
88 } 88 }
89 89
90 } // namespace media 90 } // namespace media
OLDNEW
« no previous file with comments | « media/base/bind_to_loop.h.pump ('k') | media/filters/audio_decoder_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698