Chromium Code Reviews| 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 20 matching lines...) Expand all Loading... | |
| 31 #include "content/renderer/renderer_webstoragenamespace_impl.h" | 31 #include "content/renderer/renderer_webstoragenamespace_impl.h" |
| 32 #include "content/renderer/websharedworkerrepository_impl.h" | 32 #include "content/renderer/websharedworkerrepository_impl.h" |
| 33 #include "googleurl/src/gurl.h" | 33 #include "googleurl/src/gurl.h" |
| 34 #include "ipc/ipc_sync_message_filter.h" | 34 #include "ipc/ipc_sync_message_filter.h" |
| 35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis try.h" | 35 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebBlobRegis try.h" |
| 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
| 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" |
| 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" |
| 41 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amCenter.h" | |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebMediaStre amCenterClient.h" | |
| 41 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ctionHandler.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ctionHandler.h" |
| 42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ctionHandlerClient.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne ctionHandlerClient.h" |
| 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
| 44 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize dScriptValue.h" |
| 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat cher.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat cher.h" |
| 46 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" | 48 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
| 47 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 49 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
| 48 #include "webkit/glue/simple_webmimeregistry_impl.h" | 50 #include "webkit/glue/simple_webmimeregistry_impl.h" |
| 49 #include "webkit/glue/webclipboard_impl.h" | 51 #include "webkit/glue/webclipboard_impl.h" |
| 50 #include "webkit/glue/webfileutilities_impl.h" | 52 #include "webkit/glue/webfileutilities_impl.h" |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 77 | 79 |
| 78 using WebKit::WebAudioDevice; | 80 using WebKit::WebAudioDevice; |
| 79 using WebKit::WebBlobRegistry; | 81 using WebKit::WebBlobRegistry; |
| 80 using WebKit::WebFileSystem; | 82 using WebKit::WebFileSystem; |
| 81 using WebKit::WebFrame; | 83 using WebKit::WebFrame; |
| 82 using WebKit::WebGamepads; | 84 using WebKit::WebGamepads; |
| 83 using WebKit::WebIDBFactory; | 85 using WebKit::WebIDBFactory; |
| 84 using WebKit::WebIDBKey; | 86 using WebKit::WebIDBKey; |
| 85 using WebKit::WebIDBKeyPath; | 87 using WebKit::WebIDBKeyPath; |
| 86 using WebKit::WebKitPlatformSupport; | 88 using WebKit::WebKitPlatformSupport; |
| 89 using WebKit::WebMediaStreamCenter; | |
| 90 using WebKit::WebMediaStreamCenterClient; | |
| 91 using WebKit::WebPeerConnectionHandler; | |
| 92 using WebKit::WebPeerConnectionHandlerClient; | |
| 87 using WebKit::WebSerializedScriptValue; | 93 using WebKit::WebSerializedScriptValue; |
| 88 using WebKit::WebStorageArea; | 94 using WebKit::WebStorageArea; |
| 89 using WebKit::WebStorageEventDispatcher; | 95 using WebKit::WebStorageEventDispatcher; |
| 90 using WebKit::WebStorageNamespace; | 96 using WebKit::WebStorageNamespace; |
| 91 using WebKit::WebString; | 97 using WebKit::WebString; |
| 92 using WebKit::WebURL; | 98 using WebKit::WebURL; |
| 93 using WebKit::WebVector; | 99 using WebKit::WebVector; |
| 94 | 100 |
| 95 //------------------------------------------------------------------------------ | 101 //------------------------------------------------------------------------------ |
| 96 | 102 |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 641 void RendererWebKitPlatformSupportImpl::GetPlugins( | 647 void RendererWebKitPlatformSupportImpl::GetPlugins( |
| 642 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { | 648 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { |
| 643 if (!RenderThreadImpl::current()->plugin_refresh_allowed()) | 649 if (!RenderThreadImpl::current()->plugin_refresh_allowed()) |
| 644 refresh = false; | 650 refresh = false; |
| 645 RenderThreadImpl::current()->Send( | 651 RenderThreadImpl::current()->Send( |
| 646 new ViewHostMsg_GetPlugins(refresh, plugins)); | 652 new ViewHostMsg_GetPlugins(refresh, plugins)); |
| 647 } | 653 } |
| 648 | 654 |
| 649 //------------------------------------------------------------------------------ | 655 //------------------------------------------------------------------------------ |
| 650 | 656 |
| 651 WebKit::WebPeerConnectionHandler* | 657 WebPeerConnectionHandler* |
| 652 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler( | 658 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler( |
| 653 WebKit::WebPeerConnectionHandlerClient* client) { | 659 WebPeerConnectionHandlerClient* client) { |
| 654 WebFrame* web_frame = WebFrame::frameForCurrentContext(); | 660 WebFrame* web_frame = WebFrame::frameForCurrentContext(); |
| 655 if (!web_frame) | 661 if (!web_frame) |
| 656 return NULL; | 662 return NULL; |
| 657 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); | 663 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); |
| 658 if (!render_view) | 664 if (!render_view) |
| 659 return NULL; | 665 return NULL; |
| 660 return render_view->CreatePeerConnectionHandler(client); | 666 return render_view->CreatePeerConnectionHandler(client); |
| 661 } | 667 } |
| 668 | |
| 669 //------------------------------------------------------------------------------ | |
| 670 | |
| 671 WebMediaStreamCenter* | |
| 672 RendererWebKitPlatformSupportImpl::createMediaStreamCenter( | |
| 673 WebMediaStreamCenterClient* client) { | |
| 674 RenderThreadImpl* render_thread = RenderThreadImpl::current(); | |
| 675 DCHECK(render_thread); | |
| 676 if (!render_thread) { | |
|
piman
2012/03/07 16:24:54
nit: no need for { }
mflodman_chromium_OOO
2012/03/07 19:28:28
Done.
| |
| 677 return NULL; | |
| 678 } | |
| 679 return render_thread->CreateMediaStreamCenter(client); | |
| 680 } | |
| OLD | NEW |