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

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

Issue 1965273003: Fix include path for moved thread_task_runner_handle.h header in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 Created 4 years, 7 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
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/blink/cdm_session_adapter.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/location.h" 9 #include "base/location.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
11 #include "base/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 // Converts a Closure into a bound function accepting a PipelineStatusCB. 15 // Converts a Closure into a bound function accepting a PipelineStatusCB.
16 static void RunClosure( 16 static void RunClosure(
17 const base::Closure& closure, 17 const base::Closure& closure,
18 const PipelineStatusCB& status_cb) { 18 const PipelineStatusCB& status_cb) {
19 closure.Run(); 19 closure.Run();
20 status_cb.Run(PIPELINE_OK); 20 status_cb.Run(PIPELINE_OK);
21 } 21 }
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 BoundPipelineStatusCB bound_fn = bound_fns_.Pop(); 108 BoundPipelineStatusCB bound_fn = bound_fns_.Pop();
109 bound_fn.Run(base::Bind( 109 bound_fn.Run(base::Bind(
110 &RunOnTaskRunner, 110 &RunOnTaskRunner,
111 task_runner_, 111 task_runner_,
112 base::Bind(&SerialRunner::RunNextInSeries, weak_factory_.GetWeakPtr()))); 112 base::Bind(&SerialRunner::RunNextInSeries, weak_factory_.GetWeakPtr())));
113 } 113 }
114 114
115 } // namespace media 115 } // namespace media
OLDNEW
« no previous file with comments | « media/base/pipeline_impl.cc ('k') | media/blink/cdm_session_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698