| 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 866 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 877 AddFilter(new DeviceMotionMessageFilter()); | 877 AddFilter(new DeviceMotionMessageFilter()); |
| 878 AddFilter(new DeviceOrientationMessageFilter()); | 878 AddFilter(new DeviceOrientationMessageFilter()); |
| 879 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); | 879 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); |
| 880 AddFilter(new HistogramMessageFilter()); | 880 AddFilter(new HistogramMessageFilter()); |
| 881 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) | 881 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) |
| 882 if (CommandLine::ForCurrentProcess()->HasSwitch( | 882 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 883 switches::kEnableMemoryBenchmarking)) | 883 switches::kEnableMemoryBenchmarking)) |
| 884 AddFilter(new MemoryBenchmarkMessageFilter()); | 884 AddFilter(new MemoryBenchmarkMessageFilter()); |
| 885 #endif | 885 #endif |
| 886 AddFilter(new VibrationMessageFilter()); | 886 AddFilter(new VibrationMessageFilter()); |
| 887 AddFilter(new PushMessagingMessageFilter(GetID())); | 887 AddFilter(new PushMessagingMessageFilter( |
| 888 GetID(), storage_partition_impl_->GetServiceWorkerContext())); |
| 888 AddFilter(new BatteryStatusMessageFilter()); | 889 AddFilter(new BatteryStatusMessageFilter()); |
| 889 } | 890 } |
| 890 | 891 |
| 891 int RenderProcessHostImpl::GetNextRoutingID() { | 892 int RenderProcessHostImpl::GetNextRoutingID() { |
| 892 return widget_helper_->GetNextRoutingID(); | 893 return widget_helper_->GetNextRoutingID(); |
| 893 } | 894 } |
| 894 | 895 |
| 895 | 896 |
| 896 void RenderProcessHostImpl::ResumeDeferredNavigation( | 897 void RenderProcessHostImpl::ResumeDeferredNavigation( |
| 897 const GlobalRequestID& request_id) { | 898 const GlobalRequestID& request_id) { |
| (...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2358 void RenderProcessHostImpl::GpuMemoryBufferAllocated( | 2359 void RenderProcessHostImpl::GpuMemoryBufferAllocated( |
| 2359 IPC::Message* reply, | 2360 IPC::Message* reply, |
| 2360 const gfx::GpuMemoryBufferHandle& handle) { | 2361 const gfx::GpuMemoryBufferHandle& handle) { |
| 2361 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2362 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2362 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, | 2363 ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer::WriteReplyParams(reply, |
| 2363 handle); | 2364 handle); |
| 2364 Send(reply); | 2365 Send(reply); |
| 2365 } | 2366 } |
| 2366 | 2367 |
| 2367 } // namespace content | 2368 } // namespace content |
| OLD | NEW |