| 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler( | 652 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler( |
| 653 WebKit::WebPeerConnectionHandlerClient* client) { | 653 WebKit::WebPeerConnectionHandlerClient* client) { |
| 654 WebFrame* web_frame = WebFrame::frameForCurrentContext(); | 654 WebFrame* web_frame = WebFrame::frameForCurrentContext(); |
| 655 if (!web_frame) | 655 if (!web_frame) |
| 656 return NULL; | 656 return NULL; |
| 657 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); | 657 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); |
| 658 if (!render_view) | 658 if (!render_view) |
| 659 return NULL; | 659 return NULL; |
| 660 return render_view->CreatePeerConnectionHandler(client); | 660 return render_view->CreatePeerConnectionHandler(client); |
| 661 } | 661 } |
| 662 |
| 663 GpuChannelHostFactory* |
| 664 RendererWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { |
| 665 return RenderThreadImpl::current(); |
| 666 } |
| OLD | NEW |