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

Unified Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 10703095: New PeerConnection handler in Chrome to support latest PeerConnection draft (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix code review issues found by Wei. Created 8 years, 4 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/renderer_webkitplatformsupport_impl.cc
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
index c7e274782cde98582fd08da29feb1239d521e2aa..fc89387ef492864e09ca78e2671586138cf60606 100644
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
@@ -96,6 +96,8 @@ using WebKit::WebPeerConnection00Handler;
using WebKit::WebPeerConnection00HandlerClient;
using WebKit::WebPeerConnectionHandler;
using WebKit::WebPeerConnectionHandlerClient;
+using WebKit::WebRTCPeerConnectionHandler;
+using WebKit::WebRTCPeerConnectionHandlerClient;
using WebKit::WebSerializedScriptValue;
using WebKit::WebStorageNamespace;
using WebKit::WebString;
@@ -713,6 +715,19 @@ RendererWebKitPlatformSupportImpl::createPeerConnection00Handler(
return render_view->CreatePeerConnectionHandlerJsep(client);
}
+WebRTCPeerConnectionHandler*
+RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler(
+ WebRTCPeerConnectionHandlerClient* client) {
+ WebFrame* web_frame = WebFrame::frameForCurrentContext();
+ if (web_frame) {
Ronghua Wu (Left Chromium) 2012/08/14 00:59:03 I think the format in createPeerConnection00Handle
perkj_chrome 2012/08/14 09:15:40 please talk to your colleague next to you :-> Ok -
Ronghua Wu (Left Chromium) 2012/08/15 00:57:32 :) This is the format preferred in libjingle and I
+ RenderViewImpl* view = RenderViewImpl::FromWebView(web_frame->view());
+ if (view) {
+ return view->CreateRTCPeerConnectionHandler(client);
+ }
+ }
+ return NULL;
+}
+
//------------------------------------------------------------------------------
WebMediaStreamCenter*
« content/renderer/render_view_impl.h ('K') | « content/renderer/renderer_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698