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

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: rebase Created 6 years, 2 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 28 matching lines...) Expand all
39 #include "base/tracked_objects.h" 39 #include "base/tracked_objects.h"
40 #include "cc/base/switches.h" 40 #include "cc/base/switches.h"
41 #include "content/browser/appcache/appcache_dispatcher_host.h" 41 #include "content/browser/appcache/appcache_dispatcher_host.h"
42 #include "content/browser/appcache/chrome_appcache_service.h" 42 #include "content/browser/appcache/chrome_appcache_service.h"
43 #include "content/browser/battery_status/battery_status_message_filter.h" 43 #include "content/browser/battery_status/battery_status_message_filter.h"
44 #include "content/browser/browser_child_process_host_impl.h" 44 #include "content/browser/browser_child_process_host_impl.h"
45 #include "content/browser/browser_main.h" 45 #include "content/browser/browser_main.h"
46 #include "content/browser/browser_main_loop.h" 46 #include "content/browser/browser_main_loop.h"
47 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" 47 #include "content/browser/browser_plugin/browser_plugin_message_filter.h"
48 #include "content/browser/child_process_security_policy_impl.h" 48 #include "content/browser/child_process_security_policy_impl.h"
49 #include "content/browser/device_sensors/device_light_message_filter.h"
49 #include "content/browser/device_sensors/device_motion_message_filter.h" 50 #include "content/browser/device_sensors/device_motion_message_filter.h"
50 #include "content/browser/device_sensors/device_orientation_message_filter.h" 51 #include "content/browser/device_sensors/device_orientation_message_filter.h"
51 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 52 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
52 #include "content/browser/dom_storage/dom_storage_message_filter.h" 53 #include "content/browser/dom_storage/dom_storage_message_filter.h"
53 #include "content/browser/download/mhtml_generation_manager.h" 54 #include "content/browser/download/mhtml_generation_manager.h"
54 #include "content/browser/fileapi/chrome_blob_storage_context.h" 55 #include "content/browser/fileapi/chrome_blob_storage_context.h"
55 #include "content/browser/fileapi/fileapi_message_filter.h" 56 #include "content/browser/fileapi/fileapi_message_filter.h"
56 #include "content/browser/frame_host/render_frame_message_filter.h" 57 #include "content/browser/frame_host/render_frame_message_filter.h"
57 #include "content/browser/gpu/compositor_util.h" 58 #include "content/browser/gpu/compositor_util.h"
58 #include "content/browser/gpu/gpu_data_manager_impl.h" 59 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after
859 #endif 860 #endif
860 861
861 AddFilter(new TraceMessageFilter()); 862 AddFilter(new TraceMessageFilter());
862 AddFilter(new ResolveProxyMsgHelper( 863 AddFilter(new ResolveProxyMsgHelper(
863 browser_context->GetRequestContextForRenderProcess(GetID()))); 864 browser_context->GetRequestContextForRenderProcess(GetID())));
864 AddFilter(new QuotaDispatcherHost( 865 AddFilter(new QuotaDispatcherHost(
865 GetID(), 866 GetID(),
866 storage_partition_impl_->GetQuotaManager(), 867 storage_partition_impl_->GetQuotaManager(),
867 GetContentClient()->browser()->CreateQuotaPermissionContext())); 868 GetContentClient()->browser()->CreateQuotaPermissionContext()));
868 AddFilter(new GamepadBrowserMessageFilter()); 869 AddFilter(new GamepadBrowserMessageFilter());
870 AddFilter(new DeviceLightMessageFilter());
869 AddFilter(new DeviceMotionMessageFilter()); 871 AddFilter(new DeviceMotionMessageFilter());
870 AddFilter(new DeviceOrientationMessageFilter()); 872 AddFilter(new DeviceOrientationMessageFilter());
871 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 873 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
872 AddFilter(new HistogramMessageFilter()); 874 AddFilter(new HistogramMessageFilter());
873 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 875 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
874 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 876 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
875 switches::kEnableMemoryBenchmarking)) 877 switches::kEnableMemoryBenchmarking))
876 AddFilter(new MemoryBenchmarkMessageFilter()); 878 AddFilter(new MemoryBenchmarkMessageFilter());
877 #endif 879 #endif
878 AddFilter(new VibrationMessageFilter()); 880 AddFilter(new VibrationMessageFilter());
(...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after
2233 if (worker_ref_count_ == 0) 2235 if (worker_ref_count_ == 0)
2234 Cleanup(); 2236 Cleanup();
2235 } 2237 }
2236 2238
2237 void RenderProcessHostImpl::EnsureMojoActivated() { 2239 void RenderProcessHostImpl::EnsureMojoActivated() {
2238 mojo_activation_required_ = true; 2240 mojo_activation_required_ = true;
2239 MaybeActivateMojo(); 2241 MaybeActivateMojo();
2240 } 2242 }
2241 2243
2242 } // namespace content 2244 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/device_sensors/sensor_manager_android_unittest.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698