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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 using WebKit::WebBlobRegistry; | 82 using WebKit::WebBlobRegistry; |
83 using WebKit::WebFileSystem; | 83 using WebKit::WebFileSystem; |
84 using WebKit::WebFrame; | 84 using WebKit::WebFrame; |
85 using WebKit::WebGamepads; | 85 using WebKit::WebGamepads; |
86 using WebKit::WebIDBFactory; | 86 using WebKit::WebIDBFactory; |
87 using WebKit::WebIDBKey; | 87 using WebKit::WebIDBKey; |
88 using WebKit::WebIDBKeyPath; | 88 using WebKit::WebIDBKeyPath; |
89 using WebKit::WebKitPlatformSupport; | 89 using WebKit::WebKitPlatformSupport; |
90 using WebKit::WebMediaStreamCenter; | 90 using WebKit::WebMediaStreamCenter; |
91 using WebKit::WebMediaStreamCenterClient; | 91 using WebKit::WebMediaStreamCenterClient; |
| 92 using WebKit::WebPeerConnection00Handler; |
| 93 using WebKit::WebPeerConnection00HandlerClient; |
92 using WebKit::WebPeerConnectionHandler; | 94 using WebKit::WebPeerConnectionHandler; |
93 using WebKit::WebPeerConnectionHandlerClient; | 95 using WebKit::WebPeerConnectionHandlerClient; |
94 using WebKit::WebSerializedScriptValue; | 96 using WebKit::WebSerializedScriptValue; |
95 using WebKit::WebStorageArea; | 97 using WebKit::WebStorageArea; |
96 using WebKit::WebStorageEventDispatcher; | 98 using WebKit::WebStorageEventDispatcher; |
97 using WebKit::WebStorageNamespace; | 99 using WebKit::WebStorageNamespace; |
98 using WebKit::WebString; | 100 using WebKit::WebString; |
99 using WebKit::WebURL; | 101 using WebKit::WebURL; |
100 using WebKit::WebVector; | 102 using WebKit::WebVector; |
101 | 103 |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 WebPeerConnectionHandlerClient* client) { | 721 WebPeerConnectionHandlerClient* client) { |
720 WebFrame* web_frame = WebFrame::frameForCurrentContext(); | 722 WebFrame* web_frame = WebFrame::frameForCurrentContext(); |
721 if (!web_frame) | 723 if (!web_frame) |
722 return NULL; | 724 return NULL; |
723 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); | 725 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); |
724 if (!render_view) | 726 if (!render_view) |
725 return NULL; | 727 return NULL; |
726 return render_view->CreatePeerConnectionHandler(client); | 728 return render_view->CreatePeerConnectionHandler(client); |
727 } | 729 } |
728 | 730 |
| 731 WebPeerConnection00Handler* |
| 732 RendererWebKitPlatformSupportImpl::createPeerConnection00Handler( |
| 733 WebPeerConnection00HandlerClient* client) { |
| 734 WebFrame* web_frame = WebFrame::frameForCurrentContext(); |
| 735 if (!web_frame) |
| 736 return NULL; |
| 737 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); |
| 738 if (!render_view) |
| 739 return NULL; |
| 740 return render_view->CreatePeerConnectionHandlerJsep(client); |
| 741 } |
| 742 |
729 //------------------------------------------------------------------------------ | 743 //------------------------------------------------------------------------------ |
730 | 744 |
731 WebMediaStreamCenter* | 745 WebMediaStreamCenter* |
732 RendererWebKitPlatformSupportImpl::createMediaStreamCenter( | 746 RendererWebKitPlatformSupportImpl::createMediaStreamCenter( |
733 WebMediaStreamCenterClient* client) { | 747 WebMediaStreamCenterClient* client) { |
734 RenderThreadImpl* render_thread = RenderThreadImpl::current(); | 748 RenderThreadImpl* render_thread = RenderThreadImpl::current(); |
735 DCHECK(render_thread); | 749 DCHECK(render_thread); |
736 if (!render_thread) | 750 if (!render_thread) |
737 return NULL; | 751 return NULL; |
738 return render_thread->CreateMediaStreamCenter(client); | 752 return render_thread->CreateMediaStreamCenter(client); |
739 } | 753 } |
740 | 754 |
741 GpuChannelHostFactory* | 755 GpuChannelHostFactory* |
742 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { | 756 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { |
743 return RenderThreadImpl::current(); | 757 return RenderThreadImpl::current(); |
744 } | 758 } |
OLD | NEW |