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

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

Issue 10703095: New PeerConnection handler in Chrome to support latest PeerConnection draft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Readd the UMA histogram for Deprecated PeerConnection to not screw up the stats. Created 8 years, 3 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 | « content/content_tests.gypi ('k') | 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 7d2dccb6a2a9fa33e9c94562e2d8d635ff3923dd..c46e8e2ccaf1679362d85fd3d917d364a5dc31f1 100644
--- a/content/renderer/media/media_stream_dependency_factory.h
+++ b/content/renderer/media/media_stream_dependency_factory.h
@@ -37,6 +37,8 @@ namespace WebKit {
class WebMediaStreamDescriptor;
class WebPeerConnection00Handler;
class WebPeerConnection00HandlerClient;
+class WebRTCPeerConnectionHandler;
+class WebRTCPeerConnectionHandlerClient;
}
class WebRtcAudioDeviceImpl;
@@ -51,11 +53,16 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
content::P2PSocketDispatcher* p2p_socket_dispatcher);
virtual ~MediaStreamDependencyFactory();
- // Create a a PeerConnectionHandlerJsep object that implements the
+ // Create a PeerConnectionHandlerJsep object that implements the
// WebKit WebPeerConnection00Handler interface.
WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep(
WebKit::WebPeerConnection00HandlerClient* client);
+ // Create a RTCPeerConnectionHandler object that implements the
+ // WebKit WebRTCPeerConnectionHandler interface.
+ WebKit::WebRTCPeerConnectionHandler* CreateRTCPeerConnectionHandler(
+ WebKit::WebRTCPeerConnectionHandlerClient* client);
+
// Creates a libjingle representation of a MediaStream and stores
// it in the extra data field of |description|
bool CreateNativeLocalMediaStream(
@@ -64,12 +71,24 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
// Asks the libjingle PeerConnection factory to create a libjingle
// PeerConnection object.
// The PeerConnection object is owned by PeerConnectionHandler.
- virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface>
+ virtual scoped_refptr<webrtc::PeerConnectionInterface>
CreatePeerConnection(const std::string& config,
webrtc::PeerConnectionObserver* observer);
- // Creates a libjingle representation of a Session description.
+ virtual scoped_refptr<webrtc::PeerConnectionInterface>
+ CreatePeerConnection(const webrtc::JsepInterface::IceServers& ice_servers,
+ const webrtc::MediaConstraintsInterface* constraints,
+ webrtc::PeerConnectionObserver* observer);
+
+ // Creates a libjingle representation of a Session description. Used by a
+ // PeerConnectionHandlerJsep instance.
+ virtual webrtc::SessionDescriptionInterface* CreateSessionDescription(
+ const std::string& sdp);
+
+ // Creates a libjingle representation of a Session description. Used by a
+ // RTCPeerConnectionHandler instance.
virtual webrtc::SessionDescriptionInterface* CreateSessionDescription(
+ const std::string& type,
const std::string& sdp);
// Creates a libjingle representation of an ice candidate.
@@ -80,16 +99,16 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
protected:
// Asks the PeerConnection factory to create a Local MediaStream object.
- virtual talk_base::scoped_refptr<webrtc::LocalMediaStreamInterface>
+ virtual 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>
+ virtual scoped_refptr<webrtc::LocalVideoTrackInterface>
CreateLocalVideoTrack(const std::string& label,
int video_session_id);
// Asks the PeerConnection factory to create a Local AudioTrack object.
- virtual talk_base::scoped_refptr<webrtc::LocalAudioTrackInterface>
+ virtual scoped_refptr<webrtc::LocalAudioTrackInterface>
CreateLocalAudioTrack(const std::string& label,
webrtc::AudioDeviceModule* audio_device);
@@ -119,7 +138,7 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
content::IpcNetworkManager* network_manager_;
scoped_ptr<content::IpcPacketSocketFactory> socket_factory_;
- talk_base::scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory_;
+ scoped_refptr<webrtc::PeerConnectionFactoryInterface> pc_factory_;
scoped_refptr<VideoCaptureImplManager> vc_manager_;
scoped_refptr<content::P2PSocketDispatcher> p2p_socket_dispatcher_;
« no previous file with comments | « content/content_tests.gypi ('k') | content/renderer/media/media_stream_dependency_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698