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

Unified Diff: content/renderer/media/webrtc/processed_local_audio_source.h

Issue 2626533002: Revert of Fix getUserMedia so that failure is reported for invalid audio sources. (Closed)
Patch Set: Created 3 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
Index: content/renderer/media/webrtc/processed_local_audio_source.h
diff --git a/content/renderer/media/webrtc/processed_local_audio_source.h b/content/renderer/media/webrtc/processed_local_audio_source.h
index dead7afa75b877f1e926f5d82c9cfb855521e465..20cad5db7e5ca5bfd450a3072c31320182bd0317 100644
--- a/content/renderer/media/webrtc/processed_local_audio_source.h
+++ b/content/renderer/media/webrtc/processed_local_audio_source.h
@@ -38,8 +38,6 @@
// ID are derived from |device_info|. |factory| must outlive this instance.
ProcessedLocalAudioSource(int consumer_render_frame_id,
const StreamDeviceInfo& device_info,
- const blink::WebMediaConstraints& constraints,
- const ConstraintsCallback& started_callback,
PeerConnectionDependencyFactory* factory);
~ProcessedLocalAudioSource() final;
@@ -60,6 +58,7 @@
const blink::WebMediaConstraints& source_constraints() const {
return constraints_;
}
+ void SetSourceConstraints(const blink::WebMediaConstraints& constraints);
// The following accessors are not valid until after the source is started
// (when the first track is connected).
@@ -89,7 +88,6 @@
// AudioCapturerSource::CaptureCallback implementation.
// Called on the AudioCapturerSource audio thread.
- void OnCaptureStarted() override;
void Capture(const media::AudioBus* audio_source,
int audio_delay_milliseconds,
double volume,
@@ -112,10 +110,7 @@
base::ThreadChecker thread_checker_;
// Cached audio constraints for the capturer.
- const blink::WebMediaConstraints constraints_;
-
- // Callback that's called when the audio source has been initialized.
- ConstraintsCallback started_callback_;
+ blink::WebMediaConstraints constraints_;
// Audio processor doing processing like FIFO, AGC, AEC and NS. Its output
// data is in a unit of 10 ms data chunk.

Powered by Google App Engine
This is Rietveld 408576698