diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-22 03:17:47 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-22 03:17:47 +0000 |
commit | 0dd4f83ade853a3dd81f2e35365cbd35b46e7719 (patch) | |
tree | 933838e68e76d6a6429c79623d02733bb1de6cfb /media/cast/cast_environment.cc | |
parent | d8320fb6f439f2c3c92d400c4e0be3eda79fe9c2 (diff) | |
download | chromium_src-0dd4f83ade853a3dd81f2e35365cbd35b46e7719.zip chromium_src-0dd4f83ade853a3dd81f2e35365cbd35b46e7719.tar.gz chromium_src-0dd4f83ade853a3dd81f2e35365cbd35b46e7719.tar.bz2 |
Cast: Remove TRANSPORT thread and get rid of Unretained in sender
There is no need to have a separate TRANSPORT thread to call
CastTransportSender. It is supposed to be owned by an external body so
we can just establish the contrast that it is always called on the
cast MAIN thread.
After this change there is no Unretained in the cast sender.
BUG=344621
Review URL: https://codereview.chromium.org/208333005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@258760 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/cast/cast_environment.cc')
-rw-r--r-- | media/cast/cast_environment.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/media/cast/cast_environment.cc b/media/cast/cast_environment.cc index effc999..a4a93c5 100644 --- a/media/cast/cast_environment.cc +++ b/media/cast/cast_environment.cc @@ -26,12 +26,10 @@ CastEnvironment::CastEnvironment( scoped_refptr<SingleThreadTaskRunner> main_thread_proxy, scoped_refptr<SingleThreadTaskRunner> audio_thread_proxy, scoped_refptr<SingleThreadTaskRunner> video_thread_proxy, - scoped_refptr<SingleThreadTaskRunner> transport_thread_proxy, const CastLoggingConfig& logging_config) : main_thread_proxy_(main_thread_proxy), audio_thread_proxy_(audio_thread_proxy), video_thread_proxy_(video_thread_proxy), - transport_thread_proxy_(transport_thread_proxy), clock_(clock.Pass()), logging_(new LoggingImpl(logging_config)) {} @@ -67,8 +65,6 @@ scoped_refptr<SingleThreadTaskRunner> CastEnvironment::GetTaskRunner( return audio_thread_proxy_; case CastEnvironment::VIDEO: return video_thread_proxy_; - case CastEnvironment::TRANSPORT: - return transport_thread_proxy_; default: NOTREACHED() << "Invalid Thread identifier"; return NULL; @@ -86,9 +82,6 @@ bool CastEnvironment::CurrentlyOn(ThreadId identifier) { case CastEnvironment::VIDEO: return video_thread_proxy_ && video_thread_proxy_->RunsTasksOnCurrentThread(); - case CastEnvironment::TRANSPORT: - return transport_thread_proxy_ && - transport_thread_proxy_->RunsTasksOnCurrentThread(); default: NOTREACHED() << "Invalid thread identifier"; return false; |