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

Unified Diff: chrome/renderer/media/cast_receiver_audio_valve.h

Issue 2622073003: Fix getUserMedia so that failure is reported for invalid audio sources. (Closed)
Patch Set: Change approach to be more conservative. Instead adapt OnAudioSourceStarted to the current design a… 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: chrome/renderer/media/cast_receiver_audio_valve.h
diff --git a/chrome/renderer/media/cast_receiver_audio_valve.h b/chrome/renderer/media/cast_receiver_audio_valve.h
index f6c09a74a26c125268962b6c5d90a31df508e5e7..1bf020306733a71652e4e57542876d9740b51356 100644
--- a/chrome/renderer/media/cast_receiver_audio_valve.h
+++ b/chrome/renderer/media/cast_receiver_audio_valve.h
@@ -31,6 +31,10 @@ class CastReceiverAudioValve :
void DeliverDecodedAudio(const media::AudioBus* audio_bus,
base::TimeTicks playout_time);
+ // Called to indicate that audio has started streaming and our capture
+ // callback should be notified.
+ void OnStarted();
+
// When this returns, no more calls will be forwarded to |cb|.
void Stop();

Powered by Google App Engine
This is Rietveld 408576698