OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 WebPeerConnectionHandlerClient* client) { | 674 WebPeerConnectionHandlerClient* client) { |
675 WebFrame* web_frame = WebFrame::frameForCurrentContext(); | 675 WebFrame* web_frame = WebFrame::frameForCurrentContext(); |
676 if (!web_frame) | 676 if (!web_frame) |
677 return NULL; | 677 return NULL; |
678 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); | 678 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); |
679 if (!render_view) | 679 if (!render_view) |
680 return NULL; | 680 return NULL; |
681 return render_view->CreatePeerConnectionHandler(client); | 681 return render_view->CreatePeerConnectionHandler(client); |
682 } | 682 } |
683 | 683 |
| 684 WebKit::WebJSEPPeerConnectionHandler* |
| 685 RendererWebKitPlatformSupportImpl::createJSEPPeerConnectionHandler( |
| 686 WebKit::WebJSEPPeerConnectionHandlerClient* client) { |
| 687 WebFrame* web_frame = WebFrame::frameForCurrentContext(); |
| 688 if (!web_frame) |
| 689 return NULL; |
| 690 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); |
| 691 if (!render_view) |
| 692 return NULL; |
| 693 return render_view->CreatePeerConnectionHandlerJsep(client); |
| 694 } |
| 695 |
684 //------------------------------------------------------------------------------ | 696 //------------------------------------------------------------------------------ |
685 | 697 |
686 WebMediaStreamCenter* | 698 WebMediaStreamCenter* |
687 RendererWebKitPlatformSupportImpl::createMediaStreamCenter( | 699 RendererWebKitPlatformSupportImpl::createMediaStreamCenter( |
688 WebMediaStreamCenterClient* client) { | 700 WebMediaStreamCenterClient* client) { |
689 RenderThreadImpl* render_thread = RenderThreadImpl::current(); | 701 RenderThreadImpl* render_thread = RenderThreadImpl::current(); |
690 DCHECK(render_thread); | 702 DCHECK(render_thread); |
691 if (!render_thread) | 703 if (!render_thread) |
692 return NULL; | 704 return NULL; |
693 return render_thread->CreateMediaStreamCenter(client); | 705 return render_thread->CreateMediaStreamCenter(client); |
694 } | 706 } |
695 | 707 |
696 GpuChannelHostFactory* | 708 GpuChannelHostFactory* |
697 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { | 709 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { |
698 return RenderThreadImpl::current(); | 710 return RenderThreadImpl::current(); |
699 } | 711 } |
OLD | NEW |