| 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 // Represents the browser side of the browser <--> renderer communication | 5 // Represents the browser side of the browser <--> renderer communication |
| 6 // channel. There will be one RenderProcessHost per renderer process. | 6 // channel. There will be one RenderProcessHost per renderer process. |
| 7 | 7 |
| 8 #include "content/browser/renderer_host/render_process_host_impl.h" | 8 #include "content/browser/renderer_host/render_process_host_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 #include "base/tracked_objects.h" | 40 #include "base/tracked_objects.h" |
| 41 #include "cc/base/switches.h" | 41 #include "cc/base/switches.h" |
| 42 #include "content/browser/appcache/appcache_dispatcher_host.h" | 42 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 43 #include "content/browser/appcache/chrome_appcache_service.h" | 43 #include "content/browser/appcache/chrome_appcache_service.h" |
| 44 #include "content/browser/battery_status/battery_status_message_filter.h" | 44 #include "content/browser/battery_status/battery_status_message_filter.h" |
| 45 #include "content/browser/browser_child_process_host_impl.h" | 45 #include "content/browser/browser_child_process_host_impl.h" |
| 46 #include "content/browser/browser_main.h" | 46 #include "content/browser/browser_main.h" |
| 47 #include "content/browser/browser_main_loop.h" | 47 #include "content/browser/browser_main_loop.h" |
| 48 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" | 48 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" |
| 49 #include "content/browser/child_process_security_policy_impl.h" | 49 #include "content/browser/child_process_security_policy_impl.h" |
| 50 #include "content/browser/device_sensors/device_light_message_filter.h" |
| 50 #include "content/browser/device_sensors/device_motion_message_filter.h" | 51 #include "content/browser/device_sensors/device_motion_message_filter.h" |
| 51 #include "content/browser/device_sensors/device_orientation_message_filter.h" | 52 #include "content/browser/device_sensors/device_orientation_message_filter.h" |
| 52 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 53 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 53 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 54 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
| 54 #include "content/browser/download/mhtml_generation_manager.h" | 55 #include "content/browser/download/mhtml_generation_manager.h" |
| 55 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 56 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 56 #include "content/browser/fileapi/fileapi_message_filter.h" | 57 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 57 #include "content/browser/frame_host/render_frame_message_filter.h" | 58 #include "content/browser/frame_host/render_frame_message_filter.h" |
| 58 #include "content/browser/gpu/compositor_util.h" | 59 #include "content/browser/gpu/compositor_util.h" |
| 59 #include "content/browser/gpu/gpu_data_manager_impl.h" | 60 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| (...skipping 806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 #endif | 867 #endif |
| 867 | 868 |
| 868 AddFilter(new TraceMessageFilter()); | 869 AddFilter(new TraceMessageFilter()); |
| 869 AddFilter(new ResolveProxyMsgHelper( | 870 AddFilter(new ResolveProxyMsgHelper( |
| 870 browser_context->GetRequestContextForRenderProcess(GetID()))); | 871 browser_context->GetRequestContextForRenderProcess(GetID()))); |
| 871 AddFilter(new QuotaDispatcherHost( | 872 AddFilter(new QuotaDispatcherHost( |
| 872 GetID(), | 873 GetID(), |
| 873 storage_partition_impl_->GetQuotaManager(), | 874 storage_partition_impl_->GetQuotaManager(), |
| 874 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 875 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 875 AddFilter(new GamepadBrowserMessageFilter()); | 876 AddFilter(new GamepadBrowserMessageFilter()); |
| 877 AddFilter(new DeviceLightMessageFilter()); |
| 876 AddFilter(new DeviceMotionMessageFilter()); | 878 AddFilter(new DeviceMotionMessageFilter()); |
| 877 AddFilter(new DeviceOrientationMessageFilter()); | 879 AddFilter(new DeviceOrientationMessageFilter()); |
| 878 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 880 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 879 AddFilter(new HistogramMessageFilter()); | 881 AddFilter(new HistogramMessageFilter()); |
| 880 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 882 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
| 881 if (CommandLine::ForCurrentProcess()->HasSwitch( | 883 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 882 switches::kEnableMemoryBenchmarking)) | 884 switches::kEnableMemoryBenchmarking)) |
| 883 AddFilter(new MemoryBenchmarkMessageFilter()); | 885 AddFilter(new MemoryBenchmarkMessageFilter()); |
| 884 #endif | 886 #endif |
| 885 AddFilter(new VibrationMessageFilter()); | 887 AddFilter(new VibrationMessageFilter()); |
| (...skipping 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2362 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2364 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
| 2363 IPC::Message* reply, | 2365 IPC::Message* reply, |
| 2364 const gfx::GpuMemoryBufferHandle& handle) { | 2366 const gfx::GpuMemoryBufferHandle& handle) { |
| 2365 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2367 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2366 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2368 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
| 2367 handle); | 2369 handle); |
| 2368 Send(reply); | 2370 Send(reply); |
| 2369 } | 2371 } |
| 2370 | 2372 |
| 2371 } // namespace content | 2373 } // namespace content |
| OLD | NEW |