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

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 WebGamepad to the list of ok POD deps to fix presubmit Created 6 years, 7 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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after
803 browser_context->GetRequestContextForRenderProcess(GetID()))); 803 browser_context->GetRequestContextForRenderProcess(GetID())));
804 #endif 804 #endif
805 805
806 AddFilter(new TraceMessageFilter()); 806 AddFilter(new TraceMessageFilter());
807 AddFilter(new ResolveProxyMsgHelper( 807 AddFilter(new ResolveProxyMsgHelper(
808 browser_context->GetRequestContextForRenderProcess(GetID()))); 808 browser_context->GetRequestContextForRenderProcess(GetID())));
809 AddFilter(new QuotaDispatcherHost( 809 AddFilter(new QuotaDispatcherHost(
810 GetID(), 810 GetID(),
811 storage_partition_impl_->GetQuotaManager(), 811 storage_partition_impl_->GetQuotaManager(),
812 GetContentClient()->browser()->CreateQuotaPermissionContext())); 812 GetContentClient()->browser()->CreateQuotaPermissionContext()));
813 AddFilter(new GamepadBrowserMessageFilter()); 813 AddFilter(new GamepadBrowserMessageFilter(this));
814 AddFilter(new DeviceMotionMessageFilter()); 814 AddFilter(new DeviceMotionMessageFilter());
815 AddFilter(new DeviceOrientationMessageFilter()); 815 AddFilter(new DeviceOrientationMessageFilter());
816 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 816 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
817 AddFilter(new HistogramMessageFilter()); 817 AddFilter(new HistogramMessageFilter());
818 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 818 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
819 if (CommandLine::ForCurrentProcess()->HasSwitch( 819 if (CommandLine::ForCurrentProcess()->HasSwitch(
820 switches::kEnableMemoryBenchmarking)) 820 switches::kEnableMemoryBenchmarking))
821 AddFilter(new MemoryBenchmarkMessageFilter()); 821 AddFilter(new MemoryBenchmarkMessageFilter());
822 #endif 822 #endif
823 AddFilter(new VibrationMessageFilter()); 823 AddFilter(new VibrationMessageFilter());
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
2067 mojo::ScopedMessagePipeHandle handle) { 2067 mojo::ScopedMessagePipeHandle handle) {
2068 if (!mojo_application_host_->did_activate()) 2068 if (!mojo_application_host_->did_activate())
2069 mojo_application_host_->Activate(this, GetHandle()); 2069 mojo_application_host_->Activate(this, GetHandle());
2070 2070
2071 mojo::AllocationScope scope; 2071 mojo::AllocationScope scope;
2072 mojo_application_host_->shell_client()->AcceptConnection(service_name, 2072 mojo_application_host_->shell_client()->AcceptConnection(service_name,
2073 handle.Pass()); 2073 handle.Pass());
2074 } 2074 }
2075 2075
2076 } // namespace content 2076 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698