OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "content/browser/media/capture/web_contents_audio_input_stream.h" | 5 #include "content/browser/media/capture/web_contents_audio_input_stream.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 void StartMirroring(); | 74 void StartMirroring(); |
75 void StopMirroring(); | 75 void StopMirroring(); |
76 | 76 |
77 // Invoked on the UI thread to make sure WebContents muting is turned off for | 77 // Invoked on the UI thread to make sure WebContents muting is turned off for |
78 // successful audio capture. | 78 // successful audio capture. |
79 void UnmuteWebContentsAudio(); | 79 void UnmuteWebContentsAudio(); |
80 | 80 |
81 // AudioMirroringManager::MirroringDestination implementation | 81 // AudioMirroringManager::MirroringDestination implementation |
82 virtual void QueryForMatches( | 82 virtual void QueryForMatches( |
83 const std::set<SourceFrameRef>& candidates, | 83 const std::set<SourceFrameRef>& candidates, |
84 const MatchesCallback& results_callback) OVERRIDE; | 84 const MatchesCallback& results_callback) override; |
85 void QueryForMatchesOnUIThread(const std::set<SourceFrameRef>& candidates, | 85 void QueryForMatchesOnUIThread(const std::set<SourceFrameRef>& candidates, |
86 const MatchesCallback& results_callback); | 86 const MatchesCallback& results_callback); |
87 virtual media::AudioOutputStream* AddInput( | 87 virtual media::AudioOutputStream* AddInput( |
88 const media::AudioParameters& params) OVERRIDE; | 88 const media::AudioParameters& params) override; |
89 | 89 |
90 // Callback which is run when |stream| is closed. Deletes |stream|. | 90 // Callback which is run when |stream| is closed. Deletes |stream|. |
91 void ReleaseInput(media::VirtualAudioOutputStream* stream); | 91 void ReleaseInput(media::VirtualAudioOutputStream* stream); |
92 | 92 |
93 // Called by WebContentsTracker when the target of the audio mirroring has | 93 // Called by WebContentsTracker when the target of the audio mirroring has |
94 // changed. | 94 // changed. |
95 void OnTargetChanged(RenderWidgetHost* target); | 95 void OnTargetChanged(RenderWidgetHost* target); |
96 | 96 |
97 // Injected dependencies. | 97 // Injected dependencies. |
98 const int initial_render_process_id_; | 98 const int initial_render_process_id_; |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 | 385 |
386 void WebContentsAudioInputStream::SetAutomaticGainControl(bool enabled) { | 386 void WebContentsAudioInputStream::SetAutomaticGainControl(bool enabled) { |
387 impl_->mixer_stream()->SetAutomaticGainControl(enabled); | 387 impl_->mixer_stream()->SetAutomaticGainControl(enabled); |
388 } | 388 } |
389 | 389 |
390 bool WebContentsAudioInputStream::GetAutomaticGainControl() { | 390 bool WebContentsAudioInputStream::GetAutomaticGainControl() { |
391 return impl_->mixer_stream()->GetAutomaticGainControl(); | 391 return impl_->mixer_stream()->GetAutomaticGainControl(); |
392 } | 392 } |
393 | 393 |
394 } // namespace content | 394 } // namespace content |
OLD | NEW |