| OLD | NEW |
| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/location.h" | 9 #include "base/location.h" |
| 10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
| 11 #include "base/threading/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "chrome/renderer/media/cast_receiver_audio_valve.h" | 12 #include "chrome/renderer/media/cast_receiver_audio_valve.h" |
| 13 #include "content/public/renderer/render_thread.h" | 13 #include "content/public/renderer/render_thread.h" |
| 14 #include "media/base/audio_capturer_source.h" | 14 #include "media/base/audio_capturer_source.h" |
| 15 #include "media/base/bind_to_current_loop.h" | 15 #include "media/base/bind_to_current_loop.h" |
| 16 #include "media/base/video_capturer_source.h" | 16 #include "media/capture/video_capturer_source.h" |
| 17 #include "third_party/WebKit/public/platform/WebMediaStream.h" | 17 #include "third_party/WebKit/public/platform/WebMediaStream.h" |
| 18 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 18 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
| 19 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 19 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
| 20 | 20 |
| 21 // This is a render thread object. | 21 // This is a render thread object. |
| 22 class CastReceiverSession::AudioCapturerSource : | 22 class CastReceiverSession::AudioCapturerSource : |
| 23 public media::AudioCapturerSource { | 23 public media::AudioCapturerSource { |
| 24 public: | 24 public: |
| 25 AudioCapturerSource( | 25 AudioCapturerSource( |
| 26 const scoped_refptr<CastReceiverSession> cast_receiver_session); | 26 const scoped_refptr<CastReceiverSession> cast_receiver_session); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 } | 184 } |
| 185 | 185 |
| 186 void CastReceiverSession::AudioCapturerSource::SetVolume(double volume) { | 186 void CastReceiverSession::AudioCapturerSource::SetVolume(double volume) { |
| 187 // not supported | 187 // not supported |
| 188 } | 188 } |
| 189 | 189 |
| 190 void CastReceiverSession::AudioCapturerSource::SetAutomaticGainControl( | 190 void CastReceiverSession::AudioCapturerSource::SetAutomaticGainControl( |
| 191 bool enable) { | 191 bool enable) { |
| 192 // not supported | 192 // not supported |
| 193 } | 193 } |
| OLD | NEW |