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/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
28 #include "content/public/renderer/content_renderer_client.h" | 28 #include "content/public/renderer/content_renderer_client.h" |
29 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" | 29 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" |
30 #include "content/renderer/gamepad_shared_memory_reader.h" | 30 #include "content/renderer/gamepad_shared_memory_reader.h" |
31 #include "content/renderer/hyphenator/hyphenator.h" | 31 #include "content/renderer/hyphenator/hyphenator.h" |
32 #include "content/renderer/media/media_stream_dependency_factory.h" | 32 #include "content/renderer/media/media_stream_dependency_factory.h" |
33 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 33 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
34 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" | 34 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" |
35 #include "content/renderer/render_thread_impl.h" | 35 #include "content/renderer/render_thread_impl.h" |
36 #include "content/renderer/renderer_clipboard_client.h" | 36 #include "content/renderer/renderer_clipboard_client.h" |
| 37 #include "content/renderer/webclipboard_impl.h" |
37 #include "content/renderer/websharedworkerrepository_impl.h" | 38 #include "content/renderer/websharedworkerrepository_impl.h" |
38 #include "googleurl/src/gurl.h" | 39 #include "googleurl/src/gurl.h" |
39 #include "gpu/config/gpu_info.h" | 40 #include "gpu/config/gpu_info.h" |
40 #include "ipc/ipc_sync_message_filter.h" | 41 #include "ipc/ipc_sync_message_filter.h" |
41 #include "media/audio/audio_output_device.h" | 42 #include "media/audio/audio_output_device.h" |
42 #include "media/base/audio_hardware_config.h" | 43 #include "media/base/audio_hardware_config.h" |
43 #include "net/base/net_util.h" | 44 #include "net/base/net_util.h" |
44 #include "third_party/WebKit/public/web/WebFrame.h" | 45 #include "third_party/WebKit/public/web/WebFrame.h" |
45 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 46 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
46 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 47 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
47 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 48 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
48 #include "third_party/WebKit/public/platform/WebGamepads.h" | 49 #include "third_party/WebKit/public/platform/WebGamepads.h" |
49 #include "third_party/WebKit/public/platform/WebHyphenator.h" | 50 #include "third_party/WebKit/public/platform/WebHyphenator.h" |
50 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" | 51 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" |
51 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" | 52 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" |
52 #include "third_party/WebKit/public/platform/WebURL.h" | 53 #include "third_party/WebKit/public/platform/WebURL.h" |
53 #include "third_party/WebKit/public/platform/WebVector.h" | 54 #include "third_party/WebKit/public/platform/WebVector.h" |
54 #include "webkit/base/file_path_string_conversions.h" | 55 #include "webkit/base/file_path_string_conversions.h" |
55 #include "webkit/common/gpu/webgraphicscontext3d_provider_impl.h" | 56 #include "webkit/common/gpu/webgraphicscontext3d_provider_impl.h" |
56 #include "webkit/glue/simple_webmimeregistry_impl.h" | 57 #include "webkit/glue/simple_webmimeregistry_impl.h" |
57 #include "webkit/glue/webclipboard_impl.h" | |
58 #include "webkit/glue/webfileutilities_impl.h" | 58 #include "webkit/glue/webfileutilities_impl.h" |
59 #include "webkit/glue/webkit_glue.h" | 59 #include "webkit/glue/webkit_glue.h" |
60 | 60 |
61 #if defined(OS_WIN) | 61 #if defined(OS_WIN) |
62 #include "content/common/child_process_messages.h" | 62 #include "content/common/child_process_messages.h" |
63 #include "third_party/WebKit/public/platform/win/WebSandboxSupport.h" | 63 #include "third_party/WebKit/public/platform/win/WebSandboxSupport.h" |
64 #endif | 64 #endif |
65 | 65 |
66 #if defined(OS_MACOSX) | 66 #if defined(OS_MACOSX) |
67 #include "content/common/mac/font_descriptor.h" | 67 #include "content/common/mac/font_descriptor.h" |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 base::Lock unicode_font_families_mutex_; | 183 base::Lock unicode_font_families_mutex_; |
184 std::map<string16, WebKit::WebFontFamily> unicode_font_families_; | 184 std::map<string16, WebKit::WebFontFamily> unicode_font_families_; |
185 #endif | 185 #endif |
186 }; | 186 }; |
187 #endif // defined(OS_ANDROID) | 187 #endif // defined(OS_ANDROID) |
188 | 188 |
189 //------------------------------------------------------------------------------ | 189 //------------------------------------------------------------------------------ |
190 | 190 |
191 RendererWebKitPlatformSupportImpl::RendererWebKitPlatformSupportImpl() | 191 RendererWebKitPlatformSupportImpl::RendererWebKitPlatformSupportImpl() |
192 : clipboard_client_(new RendererClipboardClient), | 192 : clipboard_client_(new RendererClipboardClient), |
193 clipboard_(new webkit_glue::WebClipboardImpl(clipboard_client_.get())), | 193 clipboard_(new WebClipboardImpl(clipboard_client_.get())), |
194 mime_registry_(new RendererWebKitPlatformSupportImpl::MimeRegistry), | 194 mime_registry_(new RendererWebKitPlatformSupportImpl::MimeRegistry), |
195 hyphenator_(new RendererWebKitPlatformSupportImpl::Hyphenator), | 195 hyphenator_(new RendererWebKitPlatformSupportImpl::Hyphenator), |
196 sudden_termination_disables_(0), | 196 sudden_termination_disables_(0), |
197 plugin_refresh_allowed_(true), | 197 plugin_refresh_allowed_(true), |
198 shared_worker_repository_(new WebSharedWorkerRepositoryImpl) { | 198 shared_worker_repository_(new WebSharedWorkerRepositoryImpl) { |
199 if (g_sandbox_enabled && sandboxEnabled()) { | 199 if (g_sandbox_enabled && sandboxEnabled()) { |
200 sandbox_support_.reset( | 200 sandbox_support_.reset( |
201 new RendererWebKitPlatformSupportImpl::SandboxSupport); | 201 new RendererWebKitPlatformSupportImpl::SandboxSupport); |
202 } else { | 202 } else { |
203 DVLOG(1) << "Disabling sandbox support for testing."; | 203 DVLOG(1) << "Disabling sandbox support for testing."; |
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 | 915 |
916 //------------------------------------------------------------------------------ | 916 //------------------------------------------------------------------------------ |
917 | 917 |
918 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( | 918 WebKit::WebString RendererWebKitPlatformSupportImpl::convertIDNToUnicode( |
919 const WebKit::WebString& host, | 919 const WebKit::WebString& host, |
920 const WebKit::WebString& languages) { | 920 const WebKit::WebString& languages) { |
921 return net::IDNToUnicode(host.utf8(), languages.utf8()); | 921 return net::IDNToUnicode(host.utf8(), languages.utf8()); |
922 } | 922 } |
923 | 923 |
924 } // namespace content | 924 } // namespace content |
OLD | NEW |