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

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

Issue 292693004: [DeviceLight] Browser+java part (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change frequency in sensor_consts Created 6 years, 3 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 29 matching lines...) Expand all
40 #include "base/tracked_objects.h" 40 #include "base/tracked_objects.h"
41 #include "cc/base/switches.h" 41 #include "cc/base/switches.h"
42 #include "content/browser/appcache/appcache_dispatcher_host.h" 42 #include "content/browser/appcache/appcache_dispatcher_host.h"
43 #include "content/browser/appcache/chrome_appcache_service.h" 43 #include "content/browser/appcache/chrome_appcache_service.h"
44 #include "content/browser/battery_status/battery_status_message_filter.h" 44 #include "content/browser/battery_status/battery_status_message_filter.h"
45 #include "content/browser/browser_child_process_host_impl.h" 45 #include "content/browser/browser_child_process_host_impl.h"
46 #include "content/browser/browser_main.h" 46 #include "content/browser/browser_main.h"
47 #include "content/browser/browser_main_loop.h" 47 #include "content/browser/browser_main_loop.h"
48 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" 48 #include "content/browser/browser_plugin/browser_plugin_message_filter.h"
49 #include "content/browser/child_process_security_policy_impl.h" 49 #include "content/browser/child_process_security_policy_impl.h"
50 #include "content/browser/device_sensors/device_light_message_filter.h"
50 #include "content/browser/device_sensors/device_motion_message_filter.h" 51 #include "content/browser/device_sensors/device_motion_message_filter.h"
51 #include "content/browser/device_sensors/device_orientation_message_filter.h" 52 #include "content/browser/device_sensors/device_orientation_message_filter.h"
52 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 53 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
53 #include "content/browser/dom_storage/dom_storage_message_filter.h" 54 #include "content/browser/dom_storage/dom_storage_message_filter.h"
54 #include "content/browser/download/mhtml_generation_manager.h" 55 #include "content/browser/download/mhtml_generation_manager.h"
55 #include "content/browser/fileapi/chrome_blob_storage_context.h" 56 #include "content/browser/fileapi/chrome_blob_storage_context.h"
56 #include "content/browser/fileapi/fileapi_message_filter.h" 57 #include "content/browser/fileapi/fileapi_message_filter.h"
57 #include "content/browser/frame_host/render_frame_message_filter.h" 58 #include "content/browser/frame_host/render_frame_message_filter.h"
58 #include "content/browser/gpu/compositor_util.h" 59 #include "content/browser/gpu/compositor_util.h"
59 #include "content/browser/gpu/gpu_data_manager_impl.h" 60 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 817 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 #endif 878 #endif
878 879
879 AddFilter(new TraceMessageFilter()); 880 AddFilter(new TraceMessageFilter());
880 AddFilter(new ResolveProxyMsgHelper( 881 AddFilter(new ResolveProxyMsgHelper(
881 browser_context->GetRequestContextForRenderProcess(GetID()))); 882 browser_context->GetRequestContextForRenderProcess(GetID())));
882 AddFilter(new QuotaDispatcherHost( 883 AddFilter(new QuotaDispatcherHost(
883 GetID(), 884 GetID(),
884 storage_partition_impl_->GetQuotaManager(), 885 storage_partition_impl_->GetQuotaManager(),
885 GetContentClient()->browser()->CreateQuotaPermissionContext())); 886 GetContentClient()->browser()->CreateQuotaPermissionContext()));
886 AddFilter(new GamepadBrowserMessageFilter()); 887 AddFilter(new GamepadBrowserMessageFilter());
888 AddFilter(new DeviceLightMessageFilter());
887 AddFilter(new DeviceMotionMessageFilter()); 889 AddFilter(new DeviceMotionMessageFilter());
888 AddFilter(new DeviceOrientationMessageFilter()); 890 AddFilter(new DeviceOrientationMessageFilter());
889 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 891 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
890 AddFilter(new HistogramMessageFilter()); 892 AddFilter(new HistogramMessageFilter());
891 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 893 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
892 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 894 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
893 switches::kEnableMemoryBenchmarking)) 895 switches::kEnableMemoryBenchmarking))
894 AddFilter(new MemoryBenchmarkMessageFilter()); 896 AddFilter(new MemoryBenchmarkMessageFilter());
895 #endif 897 #endif
896 AddFilter(new VibrationMessageFilter()); 898 AddFilter(new VibrationMessageFilter());
(...skipping 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after
2366 } 2368 }
2367 2369
2368 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( 2370 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer(
2369 gfx::GpuMemoryBufferType type, 2371 gfx::GpuMemoryBufferType type,
2370 const gfx::GpuMemoryBufferId& id) { 2372 const gfx::GpuMemoryBufferId& id) {
2371 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2373 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2372 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); 2374 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle());
2373 } 2375 }
2374 2376
2375 } // namespace content 2377 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698