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

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

Issue 152893002: [DeviceLight API] Content Side Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix in Java file, stop() Created 6 years, 8 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 25 matching lines...) Expand all
36 #include "base/threading/thread_restrictions.h" 36 #include "base/threading/thread_restrictions.h"
37 #include "base/tracked_objects.h" 37 #include "base/tracked_objects.h"
38 #include "cc/base/switches.h" 38 #include "cc/base/switches.h"
39 #include "content/browser/appcache/appcache_dispatcher_host.h" 39 #include "content/browser/appcache/appcache_dispatcher_host.h"
40 #include "content/browser/appcache/chrome_appcache_service.h" 40 #include "content/browser/appcache/chrome_appcache_service.h"
41 #include "content/browser/browser_main.h" 41 #include "content/browser/browser_main.h"
42 #include "content/browser/browser_main_loop.h" 42 #include "content/browser/browser_main_loop.h"
43 #include "content/browser/browser_plugin/browser_plugin_geolocation_permission_c ontext.h" 43 #include "content/browser/browser_plugin/browser_plugin_geolocation_permission_c ontext.h"
44 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" 44 #include "content/browser/browser_plugin/browser_plugin_message_filter.h"
45 #include "content/browser/child_process_security_policy_impl.h" 45 #include "content/browser/child_process_security_policy_impl.h"
46 #include "content/browser/device_light/device_light_message_filter.h"
46 #include "content/browser/device_orientation/device_motion_message_filter.h" 47 #include "content/browser/device_orientation/device_motion_message_filter.h"
47 #include "content/browser/device_orientation/device_orientation_message_filter.h " 48 #include "content/browser/device_orientation/device_orientation_message_filter.h "
48 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 49 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
49 #include "content/browser/dom_storage/dom_storage_message_filter.h" 50 #include "content/browser/dom_storage/dom_storage_message_filter.h"
50 #include "content/browser/download/mhtml_generation_manager.h" 51 #include "content/browser/download/mhtml_generation_manager.h"
51 #include "content/browser/fileapi/chrome_blob_storage_context.h" 52 #include "content/browser/fileapi/chrome_blob_storage_context.h"
52 #include "content/browser/fileapi/fileapi_message_filter.h" 53 #include "content/browser/fileapi/fileapi_message_filter.h"
53 #include "content/browser/frame_host/render_frame_message_filter.h" 54 #include "content/browser/frame_host/render_frame_message_filter.h"
54 #include "content/browser/gpu/compositor_util.h" 55 #include "content/browser/gpu/compositor_util.h"
55 #include "content/browser/gpu/gpu_data_manager_impl.h" 56 #include "content/browser/gpu/gpu_data_manager_impl.h"
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after
821 #endif 822 #endif
822 823
823 AddFilter(new TraceMessageFilter()); 824 AddFilter(new TraceMessageFilter());
824 AddFilter(new ResolveProxyMsgHelper( 825 AddFilter(new ResolveProxyMsgHelper(
825 browser_context->GetRequestContextForRenderProcess(GetID()))); 826 browser_context->GetRequestContextForRenderProcess(GetID())));
826 AddFilter(new QuotaDispatcherHost( 827 AddFilter(new QuotaDispatcherHost(
827 GetID(), 828 GetID(),
828 storage_partition_impl_->GetQuotaManager(), 829 storage_partition_impl_->GetQuotaManager(),
829 GetContentClient()->browser()->CreateQuotaPermissionContext())); 830 GetContentClient()->browser()->CreateQuotaPermissionContext()));
830 AddFilter(new GamepadBrowserMessageFilter()); 831 AddFilter(new GamepadBrowserMessageFilter());
832 AddFilter(new DeviceLightMessageFilter());
831 AddFilter(new DeviceMotionMessageFilter()); 833 AddFilter(new DeviceMotionMessageFilter());
832 AddFilter(new DeviceOrientationMessageFilter()); 834 AddFilter(new DeviceOrientationMessageFilter());
833 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 835 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
834 AddFilter(new HistogramMessageFilter()); 836 AddFilter(new HistogramMessageFilter());
835 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 837 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
836 if (CommandLine::ForCurrentProcess()->HasSwitch( 838 if (CommandLine::ForCurrentProcess()->HasSwitch(
837 switches::kEnableMemoryBenchmarking)) 839 switches::kEnableMemoryBenchmarking))
838 AddFilter(new MemoryBenchmarkMessageFilter()); 840 AddFilter(new MemoryBenchmarkMessageFilter());
839 #endif 841 #endif
840 AddFilter(new VibrationMessageFilter()); 842 AddFilter(new VibrationMessageFilter());
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2164 void RenderProcessHostImpl::SetWebUIHandle( 2166 void RenderProcessHostImpl::SetWebUIHandle(
2165 int32 view_routing_id, 2167 int32 view_routing_id,
2166 mojo::ScopedMessagePipeHandle handle) { 2168 mojo::ScopedMessagePipeHandle handle) {
2167 if (!render_process_host_mojo_) 2169 if (!render_process_host_mojo_)
2168 render_process_host_mojo_.reset(new RenderProcessHostMojoImpl(this)); 2170 render_process_host_mojo_.reset(new RenderProcessHostMojoImpl(this));
2169 render_process_host_mojo_->SetWebUIHandle(view_routing_id, handle.Pass()); 2171 render_process_host_mojo_->SetWebUIHandle(view_routing_id, handle.Pass());
2170 } 2172 }
2171 #endif 2173 #endif
2172 2174
2173 } // namespace content 2175 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/device_orientation/sensor_manager_android.cc ('k') | content/common/content_message_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698