| 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/logging.h" | 10 #include "base/logging.h" |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "content/renderer/device_sensors/device_motion_event_pump.h" | 42 #include "content/renderer/device_sensors/device_motion_event_pump.h" |
| 43 #include "content/renderer/device_sensors/device_orientation_event_pump.h" | 43 #include "content/renderer/device_sensors/device_orientation_event_pump.h" |
| 44 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" | 44 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" |
| 45 #include "content/renderer/gamepad_shared_memory_reader.h" | 45 #include "content/renderer/gamepad_shared_memory_reader.h" |
| 46 #include "content/renderer/media/audio_decoder.h" | 46 #include "content/renderer/media/audio_decoder.h" |
| 47 #include "content/renderer/media/crypto/key_systems.h" | 47 #include "content/renderer/media/crypto/key_systems.h" |
| 48 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 48 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
| 49 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" | 49 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" |
| 50 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" | 50 #include "content/renderer/media/webcontentdecryptionmodule_impl.h" |
| 51 #include "content/renderer/render_thread_impl.h" | 51 #include "content/renderer/render_thread_impl.h" |
| 52 #include "content/renderer/renderer_clipboard_client.h" | 52 #include "content/renderer/renderer_clipboard_delegate.h" |
| 53 #include "content/renderer/screen_orientation/screen_orientation_observer.h" | 53 #include "content/renderer/screen_orientation/screen_orientation_observer.h" |
| 54 #include "content/renderer/webclipboard_impl.h" | 54 #include "content/renderer/webclipboard_impl.h" |
| 55 #include "content/renderer/webgraphicscontext3d_provider_impl.h" | 55 #include "content/renderer/webgraphicscontext3d_provider_impl.h" |
| 56 #include "content/renderer/webpublicsuffixlist_impl.h" | 56 #include "content/renderer/webpublicsuffixlist_impl.h" |
| 57 #include "gpu/config/gpu_info.h" | 57 #include "gpu/config/gpu_info.h" |
| 58 #include "ipc/ipc_sync_message_filter.h" | 58 #include "ipc/ipc_sync_message_filter.h" |
| 59 #include "media/audio/audio_output_device.h" | 59 #include "media/audio/audio_output_device.h" |
| 60 #include "media/base/audio_hardware_config.h" | 60 #include "media/base/audio_hardware_config.h" |
| 61 #include "media/filters/stream_parser_factory.h" | 61 #include "media/filters/stream_parser_factory.h" |
| 62 #include "net/base/mime_util.h" | 62 #include "net/base/mime_util.h" |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 217 // here. | 217 // here. |
| 218 base::Lock unicode_font_families_mutex_; | 218 base::Lock unicode_font_families_mutex_; |
| 219 std::map<int32_t, blink::WebFallbackFont> unicode_font_families_; | 219 std::map<int32_t, blink::WebFallbackFont> unicode_font_families_; |
| 220 #endif | 220 #endif |
| 221 }; | 221 }; |
| 222 #endif // defined(OS_ANDROID) | 222 #endif // defined(OS_ANDROID) |
| 223 | 223 |
| 224 //------------------------------------------------------------------------------ | 224 //------------------------------------------------------------------------------ |
| 225 | 225 |
| 226 RendererWebKitPlatformSupportImpl::RendererWebKitPlatformSupportImpl() | 226 RendererWebKitPlatformSupportImpl::RendererWebKitPlatformSupportImpl() |
| 227 : clipboard_client_(new RendererClipboardClient), | 227 : clipboard_delegate_(new RendererClipboardDelegate), |
| 228 clipboard_(new WebClipboardImpl(clipboard_client_.get())), | 228 clipboard_(new WebClipboardImpl(clipboard_delegate_.get())), |
| 229 mime_registry_(new RendererWebKitPlatformSupportImpl::MimeRegistry), | 229 mime_registry_(new RendererWebKitPlatformSupportImpl::MimeRegistry), |
| 230 sudden_termination_disables_(0), | 230 sudden_termination_disables_(0), |
| 231 plugin_refresh_allowed_(true), | 231 plugin_refresh_allowed_(true), |
| 232 child_thread_loop_(base::MessageLoopProxy::current()), | 232 child_thread_loop_(base::MessageLoopProxy::current()), |
| 233 web_scrollbar_behavior_(new WebScrollbarBehaviorImpl) { | 233 web_scrollbar_behavior_(new WebScrollbarBehaviorImpl) { |
| 234 if (g_sandbox_enabled && sandboxEnabled()) { | 234 if (g_sandbox_enabled && sandboxEnabled()) { |
| 235 sandbox_support_.reset( | 235 sandbox_support_.reset( |
| 236 new RendererWebKitPlatformSupportImpl::SandboxSupport); | 236 new RendererWebKitPlatformSupportImpl::SandboxSupport); |
| 237 } else { | 237 } else { |
| 238 DVLOG(1) << "Disabling sandbox support for testing."; | 238 DVLOG(1) << "Disabling sandbox support for testing."; |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1187 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( | 1187 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( |
| 1188 const blink::WebBatteryStatus& status) { | 1188 const blink::WebBatteryStatus& status) { |
| 1189 PlatformEventObserverBase* observer = | 1189 PlatformEventObserverBase* observer = |
| 1190 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); | 1190 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); |
| 1191 if (!observer) | 1191 if (!observer) |
| 1192 return; | 1192 return; |
| 1193 observer->SendFakeDataForTesting((void*)&status); | 1193 observer->SendFakeDataForTesting((void*)&status); |
| 1194 } | 1194 } |
| 1195 | 1195 |
| 1196 } // namespace content | 1196 } // namespace content |
| OLD | NEW |