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

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

Issue 200873002: Gamepad API: add support for connection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 802 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 browser_context->GetRequestContextForRenderProcess(GetID()))); 813 browser_context->GetRequestContextForRenderProcess(GetID())));
814 #endif 814 #endif
815 815
816 AddFilter(new TraceMessageFilter()); 816 AddFilter(new TraceMessageFilter());
817 AddFilter(new ResolveProxyMsgHelper( 817 AddFilter(new ResolveProxyMsgHelper(
818 browser_context->GetRequestContextForRenderProcess(GetID()))); 818 browser_context->GetRequestContextForRenderProcess(GetID())));
819 AddFilter(new QuotaDispatcherHost( 819 AddFilter(new QuotaDispatcherHost(
820 GetID(), 820 GetID(),
821 storage_partition_impl_->GetQuotaManager(), 821 storage_partition_impl_->GetQuotaManager(),
822 GetContentClient()->browser()->CreateQuotaPermissionContext())); 822 GetContentClient()->browser()->CreateQuotaPermissionContext()));
823 AddFilter(new GamepadBrowserMessageFilter()); 823 AddFilter(new GamepadBrowserMessageFilter(this));
824 AddFilter(new DeviceMotionMessageFilter()); 824 AddFilter(new DeviceMotionMessageFilter());
825 AddFilter(new DeviceOrientationMessageFilter()); 825 AddFilter(new DeviceOrientationMessageFilter());
826 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 826 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
827 AddFilter(new HistogramMessageFilter()); 827 AddFilter(new HistogramMessageFilter());
828 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 828 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
829 if (CommandLine::ForCurrentProcess()->HasSwitch( 829 if (CommandLine::ForCurrentProcess()->HasSwitch(
830 switches::kEnableMemoryBenchmarking)) 830 switches::kEnableMemoryBenchmarking))
831 AddFilter(new MemoryBenchmarkMessageFilter()); 831 AddFilter(new MemoryBenchmarkMessageFilter());
832 #endif 832 #endif
833 AddFilter(new VibrationMessageFilter()); 833 AddFilter(new VibrationMessageFilter());
(...skipping 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after
2131 2131
2132 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2132 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2133 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 2133 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
2134 DCHECK_GT(worker_ref_count_, 0); 2134 DCHECK_GT(worker_ref_count_, 0);
2135 --worker_ref_count_; 2135 --worker_ref_count_;
2136 if (worker_ref_count_ == 0) 2136 if (worker_ref_count_ == 0)
2137 Cleanup(); 2137 Cleanup();
2138 } 2138 }
2139 2139
2140 } // namespace content 2140 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/pepper/pepper_gamepad_host.cc ('k') | content/common/gamepad_connection_event_message_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698