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

Side by Side Diff: chrome/renderer/media/cast_rtp_stream.cc

Issue 1967773004: Fix include path for moved thread_task_runner_handle.h header in chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393013 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "chrome/renderer/media/cast_rtp_stream.h" 5 #include "chrome/renderer/media/cast_rtp_stream.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/bind.h" 13 #include "base/bind.h"
14 #include "base/bind_helpers.h" 14 #include "base/bind_helpers.h"
15 #include "base/callback_helpers.h" 15 #include "base/callback_helpers.h"
16 #include "base/command_line.h" 16 #include "base/command_line.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/macros.h" 18 #include "base/macros.h"
19 #include "base/memory/ref_counted.h" 19 #include "base/memory/ref_counted.h"
20 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
21 #include "base/strings/stringprintf.h" 21 #include "base/strings/stringprintf.h"
22 #include "base/sys_info.h" 22 #include "base/sys_info.h"
23 #include "base/thread_task_runner_handle.h" 23 #include "base/threading/thread_task_runner_handle.h"
24 #include "base/timer/timer.h" 24 #include "base/timer/timer.h"
25 #include "base/trace_event/trace_event.h" 25 #include "base/trace_event/trace_event.h"
26 #include "chrome/common/chrome_switches.h" 26 #include "chrome/common/chrome_switches.h"
27 #include "chrome/renderer/media/cast_session.h" 27 #include "chrome/renderer/media/cast_session.h"
28 #include "chrome/renderer/media/cast_udp_transport.h" 28 #include "chrome/renderer/media/cast_udp_transport.h"
29 #include "content/public/renderer/media_stream_audio_sink.h" 29 #include "content/public/renderer/media_stream_audio_sink.h"
30 #include "content/public/renderer/media_stream_utils.h" 30 #include "content/public/renderer/media_stream_utils.h"
31 #include "content/public/renderer/media_stream_video_sink.h" 31 #include "content/public/renderer/media_stream_video_sink.h"
32 #include "content/public/renderer/render_thread.h" 32 #include "content/public/renderer/render_thread.h"
33 #include "content/public/renderer/video_encode_accelerator.h" 33 #include "content/public/renderer/video_encode_accelerator.h"
(...skipping 701 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 DCHECK(content::RenderThread::Get()); 735 DCHECK(content::RenderThread::Get());
736 DVLOG(1) << "CastRtpStream::DidEncounterError(" << message << ") = " 736 DVLOG(1) << "CastRtpStream::DidEncounterError(" << message << ") = "
737 << (IsAudio() ? "audio" : "video"); 737 << (IsAudio() ? "audio" : "video");
738 // Save the WeakPtr first because the error callback might delete this object. 738 // Save the WeakPtr first because the error callback might delete this object.
739 base::WeakPtr<CastRtpStream> ptr = weak_factory_.GetWeakPtr(); 739 base::WeakPtr<CastRtpStream> ptr = weak_factory_.GetWeakPtr();
740 error_callback_.Run(message); 740 error_callback_.Run(message);
741 base::ThreadTaskRunnerHandle::Get()->PostTask( 741 base::ThreadTaskRunnerHandle::Get()->PostTask(
742 FROM_HERE, 742 FROM_HERE,
743 base::Bind(&CastRtpStream::Stop, ptr)); 743 base::Bind(&CastRtpStream::Stop, ptr));
744 } 744 }
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_receiver_session.cc ('k') | chrome/renderer/media/cast_session_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698