| 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/render_thread_impl.h" | 5 #include "content/renderer/render_thread_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/allocator/allocator_extension.h" | 12 #include "base/allocator/allocator_extension.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/debug/trace_event.h" | 14 #include "base/debug/trace_event.h" |
| 15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/metrics/field_trial.h" | 17 #include "base/metrics/field_trial.h" |
| 18 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram.h" |
| 19 #include "base/metrics/stats_table.h" | 19 #include "base/metrics/stats_table.h" |
| 20 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 21 #include "base/shared_memory.h" | 21 #include "base/shared_memory.h" |
| 22 #include "base/string16.h" | 22 #include "base/string16.h" |
| 23 #include "base/string_number_conversions.h" // Temporary | 23 #include "base/string_number_conversions.h" // Temporary |
| 24 #include "base/threading/thread_local.h" | 24 #include "base/threading/thread_local.h" |
| 25 #include "base/threading/thread_restrictions.h" | 25 #include "base/threading/thread_restrictions.h" |
| 26 #include "base/utf_string_conversions.h" | 26 #include "base/utf_string_conversions.h" |
| 27 #include "base/values.h" | 27 #include "base/values.h" |
| 28 #include "content/child/indexed_db/indexed_db_dispatcher.h" |
| 29 #include "content/child/indexed_db/indexed_db_message_filter.h" |
| 30 #include "content/child/npobject_util.h" |
| 31 #include "content/child/plugin_messages.h" |
| 32 #include "content/child/web_database_observer_impl.h" |
| 28 #include "content/common/appcache/appcache_dispatcher.h" | 33 #include "content/common/appcache/appcache_dispatcher.h" |
| 29 #include "content/common/child_histogram_message_filter.h" | 34 #include "content/common/child_histogram_message_filter.h" |
| 30 #include "content/common/child_process_messages.h" | 35 #include "content/common/child_process_messages.h" |
| 31 #include "content/common/database_messages.h" | 36 #include "content/common/database_messages.h" |
| 32 #include "content/common/db_message_filter.h" | 37 #include "content/common/db_message_filter.h" |
| 33 #include "content/common/dom_storage_messages.h" | 38 #include "content/common/dom_storage_messages.h" |
| 34 #include "content/common/gpu/client/context_provider_command_buffer.h" | 39 #include "content/common/gpu/client/context_provider_command_buffer.h" |
| 35 #include "content/common/gpu/client/gpu_channel_host.h" | 40 #include "content/common/gpu/client/gpu_channel_host.h" |
| 36 #include "content/common/gpu/gpu_messages.h" | 41 #include "content/common/gpu/gpu_messages.h" |
| 37 #include "content/common/resource_dispatcher.h" | 42 #include "content/common/resource_dispatcher.h" |
| 38 #include "content/common/resource_messages.h" | 43 #include "content/common/resource_messages.h" |
| 39 #include "content/common/view_messages.h" | 44 #include "content/common/view_messages.h" |
| 40 #include "content/common_child/indexed_db/indexed_db_dispatcher.h" | |
| 41 #include "content/common_child/indexed_db/indexed_db_message_filter.h" | |
| 42 #include "content/common_child/npobject_util.h" | |
| 43 #include "content/common_child/plugin_messages.h" | |
| 44 #include "content/common_child/web_database_observer_impl.h" | |
| 45 #include "content/public/common/content_constants.h" | 45 #include "content/public/common/content_constants.h" |
| 46 #include "content/public/common/content_paths.h" | 46 #include "content/public/common/content_paths.h" |
| 47 #include "content/public/common/content_switches.h" | 47 #include "content/public/common/content_switches.h" |
| 48 #include "content/public/common/renderer_preferences.h" | 48 #include "content/public/common/renderer_preferences.h" |
| 49 #include "content/public/common/url_constants.h" | 49 #include "content/public/common/url_constants.h" |
| 50 #include "content/public/renderer/content_renderer_client.h" | 50 #include "content/public/renderer/content_renderer_client.h" |
| 51 #include "content/public/renderer/render_process_observer.h" | 51 #include "content/public/renderer/render_process_observer.h" |
| 52 #include "content/public/renderer/render_view_visitor.h" | 52 #include "content/public/renderer/render_view_visitor.h" |
| 53 #include "content/renderer/devtools/devtools_agent_filter.h" | 53 #include "content/renderer/devtools/devtools_agent_filter.h" |
| 54 #include "content/renderer/dom_storage/dom_storage_dispatcher.h" | 54 #include "content/renderer/dom_storage/dom_storage_dispatcher.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 73 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 73 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 74 #include "content/renderer/skia_benchmarking_extension.h" | 74 #include "content/renderer/skia_benchmarking_extension.h" |
| 75 #include "grit/content_resources.h" | 75 #include "grit/content_resources.h" |
| 76 #include "ipc/ipc_channel_handle.h" | 76 #include "ipc/ipc_channel_handle.h" |
| 77 #include "ipc/ipc_forwarding_message_filter.h" | 77 #include "ipc/ipc_forwarding_message_filter.h" |
| 78 #include "ipc/ipc_platform_file.h" | 78 #include "ipc/ipc_platform_file.h" |
| 79 #include "media/base/audio_hardware_config.h" | 79 #include "media/base/audio_hardware_config.h" |
| 80 #include "media/base/media.h" | 80 #include "media/base/media.h" |
| 81 #include "net/base/net_errors.h" | 81 #include "net/base/net_errors.h" |
| 82 #include "net/base/net_util.h" | 82 #include "net/base/net_util.h" |
| 83 #include "third_party/WebKit/public/platform/WebString.h" | |
| 84 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" | 83 #include "third_party/WebKit/Source/WebKit/chromium/public/WebColorName.h" |
| 85 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" | 84 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDatabase.h" |
| 86 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" | 85 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" |
| 87 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 86 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
| 88 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" | 87 #include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h" |
| 89 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi
er.h" | 88 #include "third_party/WebKit/Source/WebKit/chromium/public/WebNetworkStateNotifi
er.h" |
| 90 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" | 89 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupMenu.h" |
| 91 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 90 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
| 92 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" | 91 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptController.h
" |
| 93 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" | 92 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityPolicy.h" |
| 94 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi
tory.h" | 93 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSharedWorkerReposi
tory.h" |
| 95 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 94 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
| 95 #include "third_party/WebKit/public/platform/WebString.h" |
| 96 #include "ui/base/layout.h" | 96 #include "ui/base/layout.h" |
| 97 #include "ui/base/ui_base_switches.h" | 97 #include "ui/base/ui_base_switches.h" |
| 98 #include "v8/include/v8.h" | 98 #include "v8/include/v8.h" |
| 99 #include "webkit/glue/webkit_glue.h" | 99 #include "webkit/glue/webkit_glue.h" |
| 100 | 100 |
| 101 #if defined(OS_WIN) | 101 #if defined(OS_WIN) |
| 102 #include <windows.h> | 102 #include <windows.h> |
| 103 #include <objbase.h> | 103 #include <objbase.h> |
| 104 #include "base/win/scoped_com_initializer.h" | 104 #include "base/win/scoped_com_initializer.h" |
| 105 #else | 105 #else |
| 106 // TODO(port) | 106 // TODO(port) |
| 107 #include "base/memory/scoped_handle.h" | 107 #include "base/memory/scoped_handle.h" |
| 108 #include "content/common_child/np_channel_base.h" | 108 #include "content/child/np_channel_base.h" |
| 109 #endif | 109 #endif |
| 110 | 110 |
| 111 #if defined(OS_POSIX) | 111 #if defined(OS_POSIX) |
| 112 #include "ipc/ipc_channel_posix.h" | 112 #include "ipc/ipc_channel_posix.h" |
| 113 #endif | 113 #endif |
| 114 | 114 |
| 115 #if defined(ENABLE_WEBRTC) | 115 #if defined(ENABLE_WEBRTC) |
| 116 #include "third_party/webrtc/system_wrappers/interface/event_tracer.h" | 116 #include "third_party/webrtc/system_wrappers/interface/event_tracer.h" |
| 117 #endif | 117 #endif |
| 118 | 118 |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1329 | 1329 |
| 1330 void RenderThreadImpl::SetFlingCurveParameters( | 1330 void RenderThreadImpl::SetFlingCurveParameters( |
| 1331 const std::vector<float>& new_touchpad, | 1331 const std::vector<float>& new_touchpad, |
| 1332 const std::vector<float>& new_touchscreen) { | 1332 const std::vector<float>& new_touchscreen) { |
| 1333 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, | 1333 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, |
| 1334 new_touchscreen); | 1334 new_touchscreen); |
| 1335 | 1335 |
| 1336 } | 1336 } |
| 1337 | 1337 |
| 1338 } // namespace content | 1338 } // namespace content |
| OLD | NEW |