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

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: Fixed broken unittes. 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
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..c0fead51ee1b567018528b3180eb9c5895f074c8 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(
@@ -68,8 +75,20 @@ class CONTENT_EXPORT MediaStreamDependencyFactory
CreatePeerConnection(const std::string& config,
webrtc::PeerConnectionObserver* observer);
- // Creates a libjingle representation of a Session description.
+ virtual talk_base::scoped_refptr<webrtc::PeerConnectionInterface>
tommi (sloooow) - chröme 2012/09/13 12:20:14 does this need to be talk_base::scoped_refptr or c
perkj_chrome 2012/09/13 13:41:34 Done.
+ 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.

Powered by Google App Engine
This is Rietveld 408576698