| Index: content/renderer/renderer_webkitplatformsupport_impl.cc
|
| diff --git a/content/renderer/renderer_webkitplatformsupport_impl.cc b/content/renderer/renderer_webkitplatformsupport_impl.cc
|
| index e571411555def940f310a1936024f6893408741b..3841dc68d8474e5f36edeeae03af87328968fec6 100644
|
| --- a/content/renderer/renderer_webkitplatformsupport_impl.cc
|
| +++ b/content/renderer/renderer_webkitplatformsupport_impl.cc
|
| @@ -24,6 +24,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"
|
| @@ -37,6 +38,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/WebPeerConnectionHandler.h"
|
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebPeerConnectionHandlerClient.h"
|
| +#include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptValue.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispatcher.h"
|
| #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
|
| @@ -631,3 +635,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);
|
| +}
|
|
|