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" | |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne
ctionHandler.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne
ctionHandler.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne
ctionHandlerClient.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPeerConne
ctionHandlerClient.h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
46 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize
dScriptValue.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize
dScriptValue.h" |
47 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat
cher.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat
cher.h" |
48 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" | 46 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
49 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" | 47 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
50 #include "webkit/glue/simple_webmimeregistry_impl.h" | 48 #include "webkit/glue/simple_webmimeregistry_impl.h" |
51 #include "webkit/glue/webclipboard_impl.h" | 49 #include "webkit/glue/webclipboard_impl.h" |
52 #include "webkit/glue/webfileutilities_impl.h" | 50 #include "webkit/glue/webfileutilities_impl.h" |
(...skipping 26 matching lines...) Expand all Loading... |
79 | 77 |
80 using WebKit::WebAudioDevice; | 78 using WebKit::WebAudioDevice; |
81 using WebKit::WebBlobRegistry; | 79 using WebKit::WebBlobRegistry; |
82 using WebKit::WebFileSystem; | 80 using WebKit::WebFileSystem; |
83 using WebKit::WebFrame; | 81 using WebKit::WebFrame; |
84 using WebKit::WebGamepads; | 82 using WebKit::WebGamepads; |
85 using WebKit::WebIDBFactory; | 83 using WebKit::WebIDBFactory; |
86 using WebKit::WebIDBKey; | 84 using WebKit::WebIDBKey; |
87 using WebKit::WebIDBKeyPath; | 85 using WebKit::WebIDBKeyPath; |
88 using WebKit::WebKitPlatformSupport; | 86 using WebKit::WebKitPlatformSupport; |
89 using WebKit::WebMediaStreamCenter; | |
90 using WebKit::WebMediaStreamCenterClient; | |
91 using WebKit::WebPeerConnectionHandler; | |
92 using WebKit::WebPeerConnectionHandlerClient; | |
93 using WebKit::WebSerializedScriptValue; | 87 using WebKit::WebSerializedScriptValue; |
94 using WebKit::WebStorageArea; | 88 using WebKit::WebStorageArea; |
95 using WebKit::WebStorageEventDispatcher; | 89 using WebKit::WebStorageEventDispatcher; |
96 using WebKit::WebStorageNamespace; | 90 using WebKit::WebStorageNamespace; |
97 using WebKit::WebString; | 91 using WebKit::WebString; |
98 using WebKit::WebURL; | 92 using WebKit::WebURL; |
99 using WebKit::WebVector; | 93 using WebKit::WebVector; |
100 | 94 |
101 //------------------------------------------------------------------------------ | 95 //------------------------------------------------------------------------------ |
102 | 96 |
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
647 void RendererWebKitPlatformSupportImpl::GetPlugins( | 641 void RendererWebKitPlatformSupportImpl::GetPlugins( |
648 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { | 642 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { |
649 if (!RenderThreadImpl::current()->plugin_refresh_allowed()) | 643 if (!RenderThreadImpl::current()->plugin_refresh_allowed()) |
650 refresh = false; | 644 refresh = false; |
651 RenderThreadImpl::current()->Send( | 645 RenderThreadImpl::current()->Send( |
652 new ViewHostMsg_GetPlugins(refresh, plugins)); | 646 new ViewHostMsg_GetPlugins(refresh, plugins)); |
653 } | 647 } |
654 | 648 |
655 //------------------------------------------------------------------------------ | 649 //------------------------------------------------------------------------------ |
656 | 650 |
657 WebPeerConnectionHandler* | 651 WebKit::WebPeerConnectionHandler* |
658 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler( | 652 RendererWebKitPlatformSupportImpl::createPeerConnectionHandler( |
659 WebPeerConnectionHandlerClient* client) { | 653 WebKit::WebPeerConnectionHandlerClient* client) { |
660 WebFrame* web_frame = WebFrame::frameForCurrentContext(); | 654 WebFrame* web_frame = WebFrame::frameForCurrentContext(); |
661 if (!web_frame) | 655 if (!web_frame) |
662 return NULL; | 656 return NULL; |
663 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); | 657 RenderViewImpl* render_view = RenderViewImpl::FromWebView(web_frame->view()); |
664 if (!render_view) | 658 if (!render_view) |
665 return NULL; | 659 return NULL; |
666 return render_view->CreatePeerConnectionHandler(client); | 660 return render_view->CreatePeerConnectionHandler(client); |
667 } | 661 } |
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) | |
677 return NULL; | |
678 return render_thread->CreateMediaStreamCenter(client); | |
679 } | |
OLD | NEW |