| 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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 881 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 882 AddFilter(new HistogramMessageFilter()); | 882 AddFilter(new HistogramMessageFilter()); |
| 883 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 883 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
| 884 if (CommandLine::ForCurrentProcess()->HasSwitch( | 884 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 885 switches::kEnableMemoryBenchmarking)) | 885 switches::kEnableMemoryBenchmarking)) |
| 886 AddFilter(new MemoryBenchmarkMessageFilter()); | 886 AddFilter(new MemoryBenchmarkMessageFilter()); |
| 887 #endif | 887 #endif |
| 888 AddFilter(new VibrationMessageFilter()); | 888 AddFilter(new VibrationMessageFilter()); |
| 889 screen_orientation_dispatcher_host_ = new ScreenOrientationDispatcherHost(); | 889 screen_orientation_dispatcher_host_ = new ScreenOrientationDispatcherHost(); |
| 890 AddFilter(screen_orientation_dispatcher_host_); | 890 AddFilter(screen_orientation_dispatcher_host_); |
| 891 AddFilter(new PushMessagingMessageFilter(GetID())); | 891 AddFilter(new PushMessagingMessageFilter()); |
| 892 AddFilter(new BatteryStatusMessageFilter()); | 892 AddFilter(new BatteryStatusMessageFilter()); |
| 893 } | 893 } |
| 894 | 894 |
| 895 int RenderProcessHostImpl::GetNextRoutingID() { | 895 int RenderProcessHostImpl::GetNextRoutingID() { |
| 896 return widget_helper_->GetNextRoutingID(); | 896 return widget_helper_->GetNextRoutingID(); |
| 897 } | 897 } |
| 898 | 898 |
| 899 | 899 |
| 900 void RenderProcessHostImpl::ResumeDeferredNavigation( | 900 void RenderProcessHostImpl::ResumeDeferredNavigation( |
| 901 const GlobalRequestID& request_id) { | 901 const GlobalRequestID& request_id) { |
| (...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2302 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2302 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
| 2303 IPC::Message* reply, | 2303 IPC::Message* reply, |
| 2304 const gfx::GpuMemoryBufferHandle& handle) { | 2304 const gfx::GpuMemoryBufferHandle& handle) { |
| 2305 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2305 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2306 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2306 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
| 2307 handle); | 2307 handle); |
| 2308 Send(reply); | 2308 Send(reply); |
| 2309 } | 2309 } |
| 2310 | 2310 |
| 2311 } // namespace content | 2311 } // namespace content |
| OLD | NEW |