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

Side by Side Diff: content/renderer/media/render_media_log.cc

Issue 1967823004: Fix include path for moved thread_task_runner_handle.h header in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: 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
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 "content/renderer/media/render_media_log.h" 5 #include "content/renderer/media/render_media_log.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "base/time/default_tick_clock.h" 14 #include "base/time/default_tick_clock.h"
15 #include "content/common/view_messages.h" 15 #include "content/common/view_messages.h"
16 #include "content/public/renderer/render_thread.h" 16 #include "content/public/renderer/render_thread.h"
17 17
18 namespace { 18 namespace {
19 19
20 // Print an event to the chromium log. 20 // Print an event to the chromium log.
21 void Log(media::MediaLogEvent* event) { 21 void Log(media::MediaLogEvent* event) {
22 if (event->type == media::MediaLogEvent::PIPELINE_ERROR) { 22 if (event->type == media::MediaLogEvent::PIPELINE_ERROR) {
23 LOG(ERROR) << "MediaEvent: " 23 LOG(ERROR) << "MediaEvent: "
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 tick_clock_.swap(tick_clock); 149 tick_clock_.swap(tick_clock);
150 last_ipc_send_time_ = tick_clock_->NowTicks(); 150 last_ipc_send_time_ = tick_clock_->NowTicks();
151 } 151 }
152 152
153 void RenderMediaLog::SetTaskRunnerForTesting( 153 void RenderMediaLog::SetTaskRunnerForTesting(
154 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) { 154 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner) {
155 task_runner_ = task_runner; 155 task_runner_ = task_runner;
156 } 156 }
157 157
158 } // namespace content 158 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/remote_media_stream_impl.cc ('k') | content/renderer/media/renderer_webaudiodevice_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698