Index: content/renderer/renderer_webkitplatformsupport_impl.cc |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc |
index d687adcdfdc0e1d442d42b67f3f3f9a4c9ed242b..ac7c21d83fb1204ee71dc43cf103734e75df55db 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.cc |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.cc |
@@ -25,6 +25,7 @@ |
#include "content/renderer/media/audio_device.h" |
#include "content/renderer/media/audio_hardware.h" |
#include "content/renderer/render_thread_impl.h" |
+#include "content/renderer/render_view_impl.h" |
#include "content/renderer/renderer_clipboard_client.h" |
#include "content/renderer/renderer_webaudiodevice_impl.h" |
#include "content/renderer/renderer_webidbfactory_impl.h" |
@@ -39,6 +40,9 @@ |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConnectionHandler.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConnectionHandlerClient.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerializedScriptValue.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispatcher.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
@@ -642,3 +646,17 @@ void RendererWebKitPlatformSupportImpl::GetPlugins( |
RenderThreadImpl::current()->Send( |
new ViewHostMsg_GetPlugins(refresh, plugins)); |
} |
+ |
+//------------------------------------------------------------------------------ |
+ |
+WebKit::WebPeerConnectionHandler* |
+RendererWebKitPlatformSupportImpl::createPeerConnectionHandler( |
+ WebKit::WebPeerConnectionHandlerClient* client) { |
+ WebFrame* web_frame = WebFrame::frameForCurrentContext(); |
+ if (!web_frame) |
+ return NULL; |
+ RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); |
+ if (!render_view) |
+ return NULL; |
+ return render_view->CreatePeerConnectionHandler(client); |
+} |