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

Unified Diff: chrome/renderer/media/cast_receiver_session.cc

Issue 1123733002: [chrome/renderer/media] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit Created 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/media/cast_receiver_session.cc
diff --git a/chrome/renderer/media/cast_receiver_session.cc b/chrome/renderer/media/cast_receiver_session.cc
index d1ba653c24a0ba793a8de76a20fc421ec9816522..f374549881b16b628a3eddd13eb879b63d4503a9 100644
--- a/chrome/renderer/media/cast_receiver_session.cc
+++ b/chrome/renderer/media/cast_receiver_session.cc
@@ -57,12 +57,12 @@ class CastReceiverSession::VideoCapturerSource :
CastReceiverSession::CastReceiverSession()
: delegate_(new CastReceiverSessionDelegate()),
- io_message_loop_proxy_(
+ io_task_runner_(
content::RenderThread::Get()->GetIOMessageLoopProxy()) {}
CastReceiverSession::~CastReceiverSession() {
// We should always be able to delete the object on the IO thread.
- CHECK(io_message_loop_proxy_->DeleteSoon(FROM_HERE, delegate_.release()));
+ CHECK(io_task_runner_->DeleteSoon(FROM_HERE, delegate_.release()));
}
void CastReceiverSession::Start(
@@ -77,7 +77,7 @@ void CastReceiverSession::Start(
audio_config_ = audio_config;
video_config_ = video_config;
format_ = capture_format;
- io_message_loop_proxy_->PostTask(
+ io_task_runner_->PostTask(
FROM_HERE,
base::Bind(&CastReceiverSessionDelegate::Start,
base::Unretained(delegate_.get()),
@@ -99,7 +99,7 @@ void CastReceiverSession::Start(
void CastReceiverSession::StartAudio(
scoped_refptr<CastReceiverAudioValve> audio_valve) {
- io_message_loop_proxy_->PostTask(
+ io_task_runner_->PostTask(
FROM_HERE,
base::Bind(&CastReceiverSessionDelegate::StartAudio,
base::Unretained(delegate_.get()),
@@ -108,7 +108,7 @@ void CastReceiverSession::StartAudio(
void CastReceiverSession::StartVideo(
content::VideoCaptureDeliverFrameCB frame_callback) {
- io_message_loop_proxy_->PostTask(
+ io_task_runner_->PostTask(
FROM_HERE,
base::Bind(&CastReceiverSessionDelegate::StartVideo,
base::Unretained(delegate_.get()),
@@ -116,7 +116,7 @@ void CastReceiverSession::StartVideo(
}
void CastReceiverSession::StopVideo() {
- io_message_loop_proxy_->PostTask(
+ io_task_runner_->PostTask(
FROM_HERE,
base::Bind(&CastReceiverSessionDelegate::StopVideo,
base::Unretained(delegate_.get())));
« no previous file with comments | « chrome/renderer/media/cast_receiver_session.h ('k') | chrome/renderer/media/cast_receiver_session_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698