Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 195873019: Gamepad API: add support for connection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add some more comments Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 819 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 browser_context->GetRequestContextForRenderProcess(GetID()))); 830 browser_context->GetRequestContextForRenderProcess(GetID())));
831 #endif 831 #endif
832 832
833 AddFilter(new TraceMessageFilter()); 833 AddFilter(new TraceMessageFilter());
834 AddFilter(new ResolveProxyMsgHelper( 834 AddFilter(new ResolveProxyMsgHelper(
835 browser_context->GetRequestContextForRenderProcess(GetID()))); 835 browser_context->GetRequestContextForRenderProcess(GetID())));
836 AddFilter(new QuotaDispatcherHost( 836 AddFilter(new QuotaDispatcherHost(
837 GetID(), 837 GetID(),
838 storage_partition_impl_->GetQuotaManager(), 838 storage_partition_impl_->GetQuotaManager(),
839 GetContentClient()->browser()->CreateQuotaPermissionContext())); 839 GetContentClient()->browser()->CreateQuotaPermissionContext()));
840 AddFilter(new GamepadBrowserMessageFilter()); 840 AddFilter(new GamepadBrowserMessageFilter(this));
841 AddFilter(new DeviceMotionMessageFilter()); 841 AddFilter(new DeviceMotionMessageFilter());
842 AddFilter(new DeviceOrientationMessageFilter()); 842 AddFilter(new DeviceOrientationMessageFilter());
843 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 843 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
844 AddFilter(new HistogramMessageFilter()); 844 AddFilter(new HistogramMessageFilter());
845 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 845 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
846 if (CommandLine::ForCurrentProcess()->HasSwitch( 846 if (CommandLine::ForCurrentProcess()->HasSwitch(
847 switches::kEnableMemoryBenchmarking)) 847 switches::kEnableMemoryBenchmarking))
848 AddFilter(new MemoryBenchmarkMessageFilter()); 848 AddFilter(new MemoryBenchmarkMessageFilter());
849 #endif 849 #endif
850 AddFilter(new VibrationMessageFilter()); 850 AddFilter(new VibrationMessageFilter());
(...skipping 1321 matching lines...) Expand 10 before | Expand all | Expand 10 after
2172 child_process_launcher_->GetHandle(); 2172 child_process_launcher_->GetHandle();
2173 base::PlatformFile client_file = 2173 base::PlatformFile client_file =
2174 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle()); 2174 PlatformFileFromScopedPlatformHandle(channel_pair.PassClientHandle());
2175 Send(new MojoMsg_ChannelCreated( 2175 Send(new MojoMsg_ChannelCreated(
2176 IPC::GetFileHandleForProcess(client_file, process_handle, true))); 2176 IPC::GetFileHandleForProcess(client_file, process_handle, true)));
2177 } 2177 }
2178 } 2178 }
2179 #endif 2179 #endif
2180 2180
2181 } // namespace content 2181 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698