| 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/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "content/renderer/media/audio_decoder.h" | 41 #include "content/renderer/media/audio_decoder.h" |
| 42 #include "content/renderer/media/crypto/key_systems.h" | 42 #include "content/renderer/media/crypto/key_systems.h" |
| 43 #include "content/renderer/media/media_stream_dependency_factory.h" | 43 #include "content/renderer/media/media_stream_dependency_factory.h" |
| 44 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 44 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
| 45 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" | 45 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" |
| 46 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" | 46 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" |
| 47 #include "content/renderer/render_thread_impl.h" | 47 #include "content/renderer/render_thread_impl.h" |
| 48 #include "content/renderer/renderer_clipboard_client.h" | 48 #include "content/renderer/renderer_clipboard_client.h" |
| 49 #include "content/renderer/webclipboard_impl.h" | 49 #include "content/renderer/webclipboard_impl.h" |
| 50 #include "content/renderer/webcrypto/webcrypto_impl.h" | 50 #include "content/renderer/webcrypto/webcrypto_impl.h" |
| 51 #include "content/renderer/webgraphicscontext3d_provider_impl.h" | |
| 52 #include "content/renderer/webpublicsuffixlist_impl.h" | 51 #include "content/renderer/webpublicsuffixlist_impl.h" |
| 53 #include "gpu/config/gpu_info.h" | 52 #include "gpu/config/gpu_info.h" |
| 54 #include "ipc/ipc_sync_message_filter.h" | 53 #include "ipc/ipc_sync_message_filter.h" |
| 55 #include "media/audio/audio_output_device.h" | 54 #include "media/audio/audio_output_device.h" |
| 56 #include "media/base/audio_hardware_config.h" | 55 #include "media/base/audio_hardware_config.h" |
| 57 #include "media/filters/stream_parser_factory.h" | 56 #include "media/filters/stream_parser_factory.h" |
| 58 #include "net/base/mime_util.h" | 57 #include "net/base/mime_util.h" |
| 59 #include "net/base/net_util.h" | 58 #include "net/base/net_util.h" |
| 60 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 59 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
| 61 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" | 60 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" |
| 62 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h" | 61 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h" |
| 63 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 62 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
| 64 #include "third_party/WebKit/public/platform/WebGamepads.h" | 63 #include "third_party/WebKit/public/platform/WebGamepads.h" |
| 65 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" | 64 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" |
| 66 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" | 65 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" |
| 67 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" | 66 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" |
| 68 #include "third_party/WebKit/public/platform/WebURL.h" | 67 #include "third_party/WebKit/public/platform/WebURL.h" |
| 69 #include "third_party/WebKit/public/platform/WebVector.h" | 68 #include "third_party/WebKit/public/platform/WebVector.h" |
| 70 #include "third_party/WebKit/public/web/WebFrame.h" | 69 #include "third_party/WebKit/public/web/WebFrame.h" |
| 71 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | 70 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" |
| 72 #include "ui/gfx/color_profile.h" | 71 #include "ui/gfx/color_profile.h" |
| 73 #include "url/gurl.h" | 72 #include "url/gurl.h" |
| 74 #include "webkit/common/gpu/context_provider_web_context.h" | 73 #include "webkit/common/gpu/webgraphicscontext3d_provider_impl.h" |
| 75 #include "webkit/common/quota/quota_types.h" | 74 #include "webkit/common/quota/quota_types.h" |
| 76 #include "webkit/glue/simple_webmimeregistry_impl.h" | 75 #include "webkit/glue/simple_webmimeregistry_impl.h" |
| 77 #include "webkit/glue/webfileutilities_impl.h" | 76 #include "webkit/glue/webfileutilities_impl.h" |
| 78 #include "webkit/glue/webkit_glue.h" | 77 #include "webkit/glue/webkit_glue.h" |
| 79 | 78 |
| 80 #if defined(OS_WIN) | 79 #if defined(OS_WIN) |
| 81 #include "content/common/child_process_messages.h" | 80 #include "content/common/child_process_messages.h" |
| 82 #include "third_party/WebKit/public/platform/win/WebSandboxSupport.h" | 81 #include "third_party/WebKit/public/platform/win/WebSandboxSupport.h" |
| 83 #endif | 82 #endif |
| 84 | 83 |
| (...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 gpu_channel_host.get(), | 961 gpu_channel_host.get(), |
| 963 attributes, | 962 attributes, |
| 964 GURL(attributes.topDocumentURL), | 963 GURL(attributes.topDocumentURL), |
| 965 limits); | 964 limits); |
| 966 } | 965 } |
| 967 | 966 |
| 968 //------------------------------------------------------------------------------ | 967 //------------------------------------------------------------------------------ |
| 969 | 968 |
| 970 blink::WebGraphicsContext3DProvider* RendererWebKitPlatformSupportImpl:: | 969 blink::WebGraphicsContext3DProvider* RendererWebKitPlatformSupportImpl:: |
| 971 createSharedOffscreenGraphicsContext3DProvider() { | 970 createSharedOffscreenGraphicsContext3DProvider() { |
| 972 scoped_refptr<webkit::gpu::ContextProviderWebContext> provider = | 971 scoped_refptr<cc::ContextProvider> provider = |
| 973 RenderThreadImpl::current()->SharedMainThreadContextProvider(); | 972 RenderThreadImpl::current()->SharedMainThreadContextProvider(); |
| 974 if (!provider) | 973 if (!provider) |
| 975 return NULL; | 974 return NULL; |
| 976 return new WebGraphicsContext3DProviderImpl(provider); | 975 return new webkit::gpu::WebGraphicsContext3DProviderImpl(provider); |
| 977 } | 976 } |
| 978 | 977 |
| 979 //------------------------------------------------------------------------------ | 978 //------------------------------------------------------------------------------ |
| 980 | 979 |
| 981 blink::WebCompositorSupport* | 980 blink::WebCompositorSupport* |
| 982 RendererWebKitPlatformSupportImpl::compositorSupport() { | 981 RendererWebKitPlatformSupportImpl::compositorSupport() { |
| 983 return &compositor_support_; | 982 return &compositor_support_; |
| 984 } | 983 } |
| 985 | 984 |
| 986 //------------------------------------------------------------------------------ | 985 //------------------------------------------------------------------------------ |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1074 return; | 1073 return; |
| 1075 QuotaDispatcher::ThreadSpecificInstance( | 1074 QuotaDispatcher::ThreadSpecificInstance( |
| 1076 thread_safe_sender_.get(), | 1075 thread_safe_sender_.get(), |
| 1077 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1076 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
| 1078 storage_partition, | 1077 storage_partition, |
| 1079 static_cast<quota::StorageType>(type), | 1078 static_cast<quota::StorageType>(type), |
| 1080 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1079 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
| 1081 } | 1080 } |
| 1082 | 1081 |
| 1083 } // namespace content | 1082 } // namespace content |
| OLD | NEW |