OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 14 matching lines...) Expand all Loading... |
25 #include "content/renderer/media/audio_device.h" | 25 #include "content/renderer/media/audio_device.h" |
26 #include "content/renderer/media/audio_hardware.h" | 26 #include "content/renderer/media/audio_hardware.h" |
27 #include "content/renderer/render_thread_impl.h" | 27 #include "content/renderer/render_thread_impl.h" |
28 #include "content/renderer/renderer_clipboard_client.h" | 28 #include "content/renderer/renderer_clipboard_client.h" |
29 #include "content/renderer/renderer_webaudiodevice_impl.h" | 29 #include "content/renderer/renderer_webaudiodevice_impl.h" |
30 #include "content/renderer/renderer_webidbfactory_impl.h" | 30 #include "content/renderer/renderer_webidbfactory_impl.h" |
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/WebBlobRegistry.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/WebGamepads.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads.
h" |
38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D.
h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC
ontext3D.h" |
39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" | 39 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h" |
40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" | 40 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKey.h" |
41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" | 41 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBKeyPath.h" |
42 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSerializedScriptVa
lue.h" | 42 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSerialize
dScriptValue.h" |
43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat
cher.h" | 43 #include "third_party/WebKit/Source/WebKit/chromium/public/WebStorageEventDispat
cher.h" |
44 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 44 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" |
45 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 45 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebVector.h" |
46 #include "webkit/glue/simple_webmimeregistry_impl.h" | 46 #include "webkit/glue/simple_webmimeregistry_impl.h" |
47 #include "webkit/glue/webclipboard_impl.h" | 47 #include "webkit/glue/webclipboard_impl.h" |
48 #include "webkit/glue/webfileutilities_impl.h" | 48 #include "webkit/glue/webfileutilities_impl.h" |
49 #include "webkit/glue/webkit_glue.h" | 49 #include "webkit/glue/webkit_glue.h" |
50 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" | 50 #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" |
51 | 51 |
52 #if defined(OS_WIN) | 52 #if defined(OS_WIN) |
53 #include "content/common/child_process_messages.h" | 53 #include "content/common/child_process_messages.h" |
54 #include "third_party/WebKit/Source/WebKit/chromium/public/win/WebSandboxSupport
.h" | 54 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/win/WebSandb
oxSupport.h" |
55 #endif | 55 #endif |
56 | 56 |
57 #if defined(OS_MACOSX) | 57 #if defined(OS_MACOSX) |
58 #include "content/common/mac/font_descriptor.h" | 58 #include "content/common/mac/font_descriptor.h" |
59 #include "content/common/mac/font_loader.h" | 59 #include "content/common/mac/font_loader.h" |
60 #include "third_party/WebKit/Source/WebKit/chromium/public/mac/WebSandboxSupport
.h" | 60 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/mac/WebSandb
oxSupport.h" |
61 #endif | 61 #endif |
62 | 62 |
63 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 63 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
64 #include <string> | 64 #include <string> |
65 #include <map> | 65 #include <map> |
66 | 66 |
67 #include "base/synchronization/lock.h" | 67 #include "base/synchronization/lock.h" |
68 #include "content/common/child_process_sandbox_support_impl_linux.h" | 68 #include "content/common/child_process_sandbox_support_impl_linux.h" |
69 #include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebFontFamily.h
" | 69 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/linux/WebFon
tFamily.h" |
70 #include "third_party/WebKit/Source/WebKit/chromium/public/linux/WebSandboxSuppo
rt.h" | 70 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/linux/WebSan
dboxSupport.h" |
71 #endif | 71 #endif |
72 | 72 |
73 #if defined(OS_POSIX) | 73 #if defined(OS_POSIX) |
74 #include "base/file_descriptor_posix.h" | 74 #include "base/file_descriptor_posix.h" |
75 #endif | 75 #endif |
76 | 76 |
77 using WebKit::WebAudioDevice; | 77 using WebKit::WebAudioDevice; |
78 using WebKit::WebBlobRegistry; | 78 using WebKit::WebBlobRegistry; |
79 using WebKit::WebFileSystem; | 79 using WebKit::WebFileSystem; |
80 using WebKit::WebFrame; | 80 using WebKit::WebFrame; |
(...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 return WebKitPlatformSupportImpl::userAgent(url); | 635 return WebKitPlatformSupportImpl::userAgent(url); |
636 } | 636 } |
637 | 637 |
638 void RendererWebKitPlatformSupportImpl::GetPlugins( | 638 void RendererWebKitPlatformSupportImpl::GetPlugins( |
639 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { | 639 bool refresh, std::vector<webkit::WebPluginInfo>* plugins) { |
640 if (!RenderThreadImpl::current()->plugin_refresh_allowed()) | 640 if (!RenderThreadImpl::current()->plugin_refresh_allowed()) |
641 refresh = false; | 641 refresh = false; |
642 RenderThreadImpl::current()->Send( | 642 RenderThreadImpl::current()->Send( |
643 new ViewHostMsg_GetPlugins(refresh, plugins)); | 643 new ViewHostMsg_GetPlugins(refresh, plugins)); |
644 } | 644 } |
OLD | NEW |