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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
713 WebPeerConnectionHandlerClient* client) { | 713 WebPeerConnectionHandlerClient* client) { |
714 WebFrame* web_frame = WebFrame::frameForCurrentContext(); | 714 WebFrame* web_frame = WebFrame::frameForCurrentContext(); |
715 if (!web_frame) | 715 if (!web_frame) |
716 return NULL; | 716 return NULL; |
717 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); | 717 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); |
718 if (!render_view) | 718 if (!render_view) |
719 return NULL; | 719 return NULL; |
720 return render_view->CreatePeerConnectionHandler(client); | 720 return render_view->CreatePeerConnectionHandler(client); |
721 } | 721 } |
722 | 722 |
723 WebKit::WebPeerConnection00Handler* | |
darin (slow to review)
2012/04/04 18:16:44
add using declaration to the top of the file as wa
Henrik Grunell
2012/04/10 20:20:25
Done.
| |
724 RendererWebKitPlatformSupportImpl::createPeerConnection00Handler( | |
725 WebKit::WebPeerConnection00HandlerClient* client) { | |
726 WebFrame* web_frame = WebFrame::frameForCurrentContext(); | |
727 if (!web_frame) | |
728 return NULL; | |
729 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); | |
730 if (!render_view) | |
731 return NULL; | |
732 return render_view->CreatePeerConnectionHandlerJsep(client); | |
733 } | |
734 | |
723 //------------------------------------------------------------------------------ | 735 //------------------------------------------------------------------------------ |
724 | 736 |
725 WebMediaStreamCenter* | 737 WebMediaStreamCenter* |
726 RendererWebKitPlatformSupportImpl::createMediaStreamCenter( | 738 RendererWebKitPlatformSupportImpl::createMediaStreamCenter( |
727 WebMediaStreamCenterClient* client) { | 739 WebMediaStreamCenterClient* client) { |
728 RenderThreadImpl* render_thread = RenderThreadImpl::current(); | 740 RenderThreadImpl* render_thread = RenderThreadImpl::current(); |
729 DCHECK(render_thread); | 741 DCHECK(render_thread); |
730 if (!render_thread) | 742 if (!render_thread) |
731 return NULL; | 743 return NULL; |
732 return render_thread->CreateMediaStreamCenter(client); | 744 return render_thread->CreateMediaStreamCenter(client); |
733 } | 745 } |
734 | 746 |
735 GpuChannelHostFactory* | 747 GpuChannelHostFactory* |
736 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { | 748 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { |
737 return RenderThreadImpl::current(); | 749 return RenderThreadImpl::current(); |
738 } | 750 } |
OLD | NEW |