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

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

Issue 9284020: Enabling usage of native PeerConnection v2 in libjingle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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
« no previous file with comments | « no previous file | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/media_stream_dependency_factory.h
diff --git a/content/renderer/media/media_stream_dependency_factory.h b/content/renderer/media/media_stream_dependency_factory.h
index ea51b5870b2108a976e4f639a29eb0df739d1301..20efd9ec1611655007f94ed9f5f934116ac7cb58 100644
--- a/content/renderer/media/media_stream_dependency_factory.h
+++ b/content/renderer/media/media_stream_dependency_factory.h
@@ -10,7 +10,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "content/common/content_export.h"
-#include "third_party/libjingle/source/talk/app/webrtcv1/peerconnectionfactory.h"
+#include "third_party/libjingle/source/talk/app/webrtc/peerconnection.h"
#include "webkit/glue/p2p_transport.h"
namespace content {
@@ -20,9 +20,7 @@ class P2PSocketDispatcher;
}
namespace cricket {
-class MediaEngineInterface;
class PortAllocator;
-class WebRtcMediaEngine;
}
namespace talk_base {
@@ -42,35 +40,39 @@ class CONTENT_EXPORT MediaStreamDependencyFactory {
MediaStreamDependencyFactory();
virtual ~MediaStreamDependencyFactory();
- // WebRtcMediaEngine is used in CreatePeerConnectionFactory().
- virtual cricket::WebRtcMediaEngine* CreateWebRtcMediaEngine();
-
// Creates and deletes |pc_factory_|, which in turn is used for
- // creating PeerConnection objects. |media_engine| is the engine created by
- // CreateWebRtcMediaEngine(). |port_allocator| and |media_engine| will be
- // owned by |pc_factory_|. |worker_thread| is owned by MediaStreamImpl.
+ // creating PeerConnection objects.
virtual bool CreatePeerConnectionFactory(
- cricket::MediaEngineInterface* media_engine,
- talk_base::Thread* worker_thread);
- virtual void DeletePeerConnectionFactory();
- virtual bool PeerConnectionFactoryCreated();
-
- // The port allocator is used in CreatePeerConnection().
- virtual cricket::PortAllocator* CreatePortAllocator(
+ talk_base::Thread* worker_thread,
+ talk_base::Thread* signaling_thread,
content::P2PSocketDispatcher* socket_dispatcher,
talk_base::NetworkManager* network_manager,
- talk_base::PacketSocketFactory* socket_factory,
- const webkit_glue::P2PTransport::Config& config);
+ talk_base::PacketSocketFactory* socket_factory);
+ virtual void ReleasePeerConnectionFactory();
+ virtual bool PeerConnectionFactoryCreated();
+
+ // Asks the PeerConnection factory to create a PeerConnection object.
+ // The PeerConnection object is owned by PeerConnectionHandler.
+ virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface>
+ CreatePeerConnection(const std::string& config,
+ webrtc::PeerConnectionObserver* observer);
+
+ // Asks the PeerConnection factory to create a Local MediaStream object.
+ virtual talk_base::scoped_refptr<webrtc::LocalMediaStreamInterface>
+ CreateLocalMediaStream(const std::string& label);
+
+ // Asks the PeerConnection factory to create a Local VideoTrack object.
+ virtual talk_base::scoped_refptr<webrtc::LocalVideoTrackInterface>
+ CreateLocalVideoTrack(const std::string& label,
+ cricket::VideoCapturer* video_device);
- // Asks the PeerConnection factory to create a PeerConnection object. See
- // MediaStreamImpl for details about |signaling_thread|. The PeerConnection
- // object is owned by PeerConnectionHandler.
- virtual webrtc::PeerConnection* CreatePeerConnection(
- cricket::PortAllocator* port_allocator,
- talk_base::Thread* signaling_thread);
+ // Asks the PeerConnection factory to create a Local AudioTrack object.
+ virtual talk_base::scoped_refptr<webrtc::LocalAudioTrackInterface>
+ CreateLocalAudioTrack(const std::string& label,
+ webrtc::AudioDeviceModule* audio_device);
private:
- scoped_ptr<webrtc::PeerConnectionFactory> pc_factory_;
+ talk_base::scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory_;
DISALLOW_COPY_AND_ASSIGN(MediaStreamDependencyFactory);
};
« no previous file with comments | « no previous file | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698