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

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

Issue 1083883003: Move BindToCurrentLoop from media/base/ to base/ Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix media/base/callback_holder.h compile Created 5 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_receiver_session.h" 5 #include "chrome/renderer/media/cast_receiver_session.h"
6 6
7 #include "base/bind_to_current_loop.h"
7 #include "base/synchronization/waitable_event.h" 8 #include "base/synchronization/waitable_event.h"
8 #include "chrome/renderer/media/cast_receiver_audio_valve.h" 9 #include "chrome/renderer/media/cast_receiver_audio_valve.h"
9 #include "content/public/renderer/render_thread.h" 10 #include "content/public/renderer/render_thread.h"
10 #include "media/base/audio_capturer_source.h" 11 #include "media/base/audio_capturer_source.h"
11 #include "media/base/bind_to_current_loop.h"
12 #include "media/base/video_capturer_source.h" 12 #include "media/base/video_capturer_source.h"
13 #include "third_party/WebKit/public/platform/WebMediaStream.h" 13 #include "third_party/WebKit/public/platform/WebMediaStream.h"
14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" 14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" 15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
16 16
17 // This is a render thread object. 17 // This is a render thread object.
18 class CastReceiverSession::AudioCapturerSource : 18 class CastReceiverSession::AudioCapturerSource :
19 public media::AudioCapturerSource { 19 public media::AudioCapturerSource {
20 public: 20 public:
21 AudioCapturerSource( 21 AudioCapturerSource(
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 io_message_loop_proxy_->PostTask( 80 io_message_loop_proxy_->PostTask(
81 FROM_HERE, 81 FROM_HERE,
82 base::Bind(&CastReceiverSessionDelegate::Start, 82 base::Bind(&CastReceiverSessionDelegate::Start,
83 base::Unretained(delegate_.get()), 83 base::Unretained(delegate_.get()),
84 audio_config, 84 audio_config,
85 video_config, 85 video_config,
86 local_endpoint, 86 local_endpoint,
87 remote_endpoint, 87 remote_endpoint,
88 base::Passed(&options), 88 base::Passed(&options),
89 format_, 89 format_,
90 media::BindToCurrentLoop(error_callback))); 90 base::BindToCurrentLoop(error_callback)));
91 scoped_refptr<media::AudioCapturerSource> audio( 91 scoped_refptr<media::AudioCapturerSource> audio(
92 new CastReceiverSession::AudioCapturerSource(this)); 92 new CastReceiverSession::AudioCapturerSource(this));
93 scoped_ptr<media::VideoCapturerSource> video( 93 scoped_ptr<media::VideoCapturerSource> video(
94 new CastReceiverSession::VideoCapturerSource(this)); 94 new CastReceiverSession::VideoCapturerSource(this));
95 base::MessageLoop::current()->PostTask( 95 base::MessageLoop::current()->PostTask(
96 FROM_HERE, 96 FROM_HERE,
97 base::Bind(start_callback, audio, base::Passed(&video))); 97 base::Bind(start_callback, audio, base::Passed(&video)));
98 } 98 }
99 99
100 void CastReceiverSession::StartAudio( 100 void CastReceiverSession::StartAudio(
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 192 }
193 193
194 void CastReceiverSession::AudioCapturerSource::SetVolume(double volume) { 194 void CastReceiverSession::AudioCapturerSource::SetVolume(double volume) {
195 // not supported 195 // not supported
196 } 196 }
197 197
198 void CastReceiverSession::AudioCapturerSource::SetAutomaticGainControl( 198 void CastReceiverSession::AudioCapturerSource::SetAutomaticGainControl(
199 bool enable) { 199 bool enable) {
200 // not supported 200 // not supported
201 } 201 }
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/drive_backend/callback_helper.h ('k') | chrome/renderer/media/cast_rtp_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698