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

Unified Diff: content/renderer/media/rtc_peer_connection_handler.h

Issue 2759953003: Interface RTCRtpReceiver and RTCPeerConnection.getReceivers() added. (Closed)
Patch Set: DISALLOW_COPY_AND_ASSIGN Created 3 years, 9 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/rtc_peer_connection_handler.h
diff --git a/content/renderer/media/rtc_peer_connection_handler.h b/content/renderer/media/rtc_peer_connection_handler.h
index 0b1d64f934e80eb1dd2bcf75fbfc84cfbc625eec..65c17b2aa49cf0d39bd18f63143829782fc1eadd 100644
--- a/content/renderer/media/rtc_peer_connection_handler.h
+++ b/content/renderer/media/rtc_peer_connection_handler.h
@@ -147,6 +147,8 @@ class CONTENT_EXPORT RTCPeerConnectionHandler
void getStats(const blink::WebRTCStatsRequest& request) override;
void getStats(
std::unique_ptr<blink::WebRTCStatsReportCallback> callback) override;
+ blink::WebVector<std::unique_ptr<blink::WebRTCRtpReceiver>> getReceivers()
+ override;
blink::WebRTCDataChannelHandler* createDataChannel(
const blink::WebString& label,
const blink::WebRTCDataChannelInit& init) override;
@@ -233,6 +235,13 @@ class CONTENT_EXPORT RTCPeerConnectionHandler
void RunSynchronousClosureOnSignalingThread(const base::Closure& closure,
const char* trace_event_name);
+ // If a track is not found with the specified id, the returned track's
+ // |isNull| will return true.
+ blink::WebMediaStreamTrack GetRemoteAudioTrack(
+ const std::string& track_id) const;
+ blink::WebMediaStreamTrack GetRemoteVideoTrack(
+ const std::string& track_id) const;
+
base::ThreadChecker thread_checker_;
// |client_| is a weak pointer to the blink object (blink::RTCPeerConnection)
« no previous file with comments | « content/renderer/media/mock_peer_connection_impl.cc ('k') | content/renderer/media/rtc_peer_connection_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698