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

Unified Diff: media/cast/cast_environment.cc

Issue 109413004: Cast:Adding cast_transport_config and cleaning up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 6 years, 11 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
« no previous file with comments | « media/cast/cast_environment.h ('k') | media/cast/cast_receiver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/cast_environment.cc
diff --git a/media/cast/cast_environment.cc b/media/cast/cast_environment.cc
index eac83081b7c0c57ce741be2cd53edeca92acdd24..6b084b161565a79b02e7f1e651a551b1685f535d 100644
--- a/media/cast/cast_environment.cc
+++ b/media/cast/cast_environment.cc
@@ -18,6 +18,7 @@ CastEnvironment::CastEnvironment(
scoped_refptr<TaskRunner> audio_decode_thread_proxy,
scoped_refptr<TaskRunner> video_encode_thread_proxy,
scoped_refptr<TaskRunner> video_decode_thread_proxy,
+ scoped_refptr<TaskRunner> transport_thread_proxy,
const CastLoggingConfig& config)
: clock_(clock),
main_thread_proxy_(main_thread_proxy),
@@ -25,6 +26,7 @@ CastEnvironment::CastEnvironment(
audio_decode_thread_proxy_(audio_decode_thread_proxy),
video_encode_thread_proxy_(video_encode_thread_proxy),
video_decode_thread_proxy_(video_decode_thread_proxy),
+ transport_thread_proxy_(transport_thread_proxy),
logging_(new LoggingImpl(main_thread_proxy, config)) {
DCHECK(main_thread_proxy) << "Main thread required";
}
@@ -63,6 +65,8 @@ scoped_refptr<TaskRunner> CastEnvironment::GetMessageTaskRunnerForThread(
return video_encode_thread_proxy_;
case CastEnvironment::VIDEO_DECODER:
return video_decode_thread_proxy_;
+ case CastEnvironment::TRANSPORT:
+ return transport_thread_proxy_;
default:
NOTREACHED() << "Invalid Thread identifier";
return NULL;
@@ -81,6 +85,8 @@ bool CastEnvironment::CurrentlyOn(ThreadId identifier) {
return video_encode_thread_proxy_->RunsTasksOnCurrentThread();
case CastEnvironment::VIDEO_DECODER:
return video_decode_thread_proxy_->RunsTasksOnCurrentThread();
+ case CastEnvironment::TRANSPORT:
+ return transport_thread_proxy_->RunsTasksOnCurrentThread();
default:
NOTREACHED() << "Invalid thread identifier";
return false;
« no previous file with comments | « media/cast/cast_environment.h ('k') | media/cast/cast_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698