Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index b1bb19881010df4c0c336b5989971a85fbd9297b..4853a394f5e8452ce8f925a3d45118c818c029f9 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -135,6 +135,8 @@ |
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsContext3D.h" |
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebImage.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebJSEPPeerConnectionHandler.h" |
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebJSEPPeerConnectionHandlerClient.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/platform/WebPoint.h" |
@@ -651,6 +653,18 @@ WebKit::WebPeerConnectionHandler* RenderViewImpl::CreatePeerConnectionHandler( |
return media_stream_impl_->CreatePeerConnectionHandler(client); |
} |
+WebKit::WebJSEPPeerConnectionHandler* |
+RenderViewImpl::CreatePeerConnectionHandlerJsep( |
+ WebKit::WebJSEPPeerConnectionHandlerClient* client) { |
+ const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); |
+ if (!cmd_line->HasSwitch(switches::kEnableMediaStream)) |
+ return NULL; |
+ EnsureMediaStreamImpl(); |
+ if (!media_stream_impl_.get()) |
+ return NULL; |
+ return media_stream_impl_->CreatePeerConnectionHandlerJsep(client); |
+} |
+ |
void RenderViewImpl::AddObserver(RenderViewObserver* observer) { |
observers_.AddObserver(observer); |
} |