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

Unified Diff: webrtc/api/peerconnectionfactory.cc

Issue 1975453002: Add PeerConnection IsClosed check. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Inject the TransportController to PeerConnection. Created 4 years, 7 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
« no previous file with comments | « webrtc/api/peerconnectionfactory.h ('k') | webrtc/api/peerconnectioninterface_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/peerconnectionfactory.cc
diff --git a/webrtc/api/peerconnectionfactory.cc b/webrtc/api/peerconnectionfactory.cc
index a91589a98a55343f3bb0ec845337ddb443e05ab6..2717c0987de43ce5034170d8e872a9185e3e8733 100644
--- a/webrtc/api/peerconnectionfactory.cc
+++ b/webrtc/api/peerconnectionfactory.cc
@@ -189,7 +189,6 @@ bool PeerConnectionFactory::Initialize() {
return true;
}
zhihuang1 2016/06/01 21:11:21 This empty line should not be deleted.
-
rtc::scoped_refptr<AudioSourceInterface>
PeerConnectionFactory::CreateAudioSource(
const MediaConstraintsInterface* constraints) {
@@ -332,6 +331,13 @@ webrtc::MediaControllerInterface* PeerConnectionFactory::CreateMediaController(
channel_manager_.get());
}
+cricket::TransportController* PeerConnectionFactory::CreateTransportController(
+ cricket::PortAllocator* port_allocator) {
+ RTC_DCHECK(signaling_thread_->IsCurrent());
+ return new cricket::TransportController(signaling_thread_, network_thread_,
+ port_allocator);
+}
+
rtc::Thread* PeerConnectionFactory::signaling_thread() {
// This method can be called on a different thread when the factory is
// created in CreatePeerConnectionFactory().
« no previous file with comments | « webrtc/api/peerconnectionfactory.h ('k') | webrtc/api/peerconnectioninterface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698