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

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

Issue 1332583002: Architecture for cross-process memory notification suppressing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment explaining the use of scoped_ptr in the browser test matcher Created 5 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 #include "content/browser/gpu/gpu_process_host.h" 66 #include "content/browser/gpu/gpu_process_host.h"
67 #include "content/browser/gpu/shader_disk_cache.h" 67 #include "content/browser/gpu/shader_disk_cache.h"
68 #include "content/browser/histogram_message_filter.h" 68 #include "content/browser/histogram_message_filter.h"
69 #include "content/browser/indexed_db/indexed_db_context_impl.h" 69 #include "content/browser/indexed_db/indexed_db_context_impl.h"
70 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" 70 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h"
71 #include "content/browser/loader/resource_message_filter.h" 71 #include "content/browser/loader/resource_message_filter.h"
72 #include "content/browser/loader/resource_scheduler_filter.h" 72 #include "content/browser/loader/resource_scheduler_filter.h"
73 #include "content/browser/media/capture/audio_mirroring_manager.h" 73 #include "content/browser/media/capture/audio_mirroring_manager.h"
74 #include "content/browser/media/media_internals.h" 74 #include "content/browser/media/media_internals.h"
75 #include "content/browser/media/midi_host.h" 75 #include "content/browser/media/midi_host.h"
76 #include "content/browser/memory/memory_message_filter.h"
76 #include "content/browser/message_port_message_filter.h" 77 #include "content/browser/message_port_message_filter.h"
77 #include "content/browser/mime_registry_message_filter.h" 78 #include "content/browser/mime_registry_message_filter.h"
78 #include "content/browser/mojo/mojo_application_host.h" 79 #include "content/browser/mojo/mojo_application_host.h"
79 #include "content/browser/navigator_connect/service_port_service_impl.h" 80 #include "content/browser/navigator_connect/service_port_service_impl.h"
80 #include "content/browser/notifications/notification_message_filter.h" 81 #include "content/browser/notifications/notification_message_filter.h"
81 #include "content/browser/permissions/permission_service_context.h" 82 #include "content/browser/permissions/permission_service_context.h"
82 #include "content/browser/permissions/permission_service_impl.h" 83 #include "content/browser/permissions/permission_service_impl.h"
83 #include "content/browser/profiler_message_filter.h" 84 #include "content/browser/profiler_message_filter.h"
84 #include "content/browser/push_messaging/push_messaging_message_filter.h" 85 #include "content/browser/push_messaging/push_messaging_message_filter.h"
85 #include "content/browser/quota_dispatcher_host.h" 86 #include "content/browser/quota_dispatcher_host.h"
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 AddFilter(new GamepadBrowserMessageFilter()); 954 AddFilter(new GamepadBrowserMessageFilter());
954 AddFilter(new DeviceLightMessageFilter()); 955 AddFilter(new DeviceLightMessageFilter());
955 AddFilter(new DeviceMotionMessageFilter()); 956 AddFilter(new DeviceMotionMessageFilter());
956 AddFilter(new DeviceOrientationMessageFilter()); 957 AddFilter(new DeviceOrientationMessageFilter());
957 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 958 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
958 AddFilter(new HistogramMessageFilter()); 959 AddFilter(new HistogramMessageFilter());
959 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 960 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
960 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) 961 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
961 AddFilter(new MemoryBenchmarkMessageFilter()); 962 AddFilter(new MemoryBenchmarkMessageFilter());
962 #endif 963 #endif
964 AddFilter(new MemoryMessageFilter());
963 AddFilter(new PushMessagingMessageFilter( 965 AddFilter(new PushMessagingMessageFilter(
964 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 966 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
965 #if defined(OS_ANDROID) 967 #if defined(OS_ANDROID)
966 AddFilter(new ScreenOrientationMessageFilterAndroid()); 968 AddFilter(new ScreenOrientationMessageFilterAndroid());
967 #endif 969 #endif
968 AddFilter(new GeofencingDispatcherHost( 970 AddFilter(new GeofencingDispatcherHost(
969 storage_partition_impl_->GetGeofencingManager())); 971 storage_partition_impl_->GetGeofencingManager()));
970 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { 972 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) {
971 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); 973 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID());
972 AddFilter(bluetooth_dispatcher_host_.get()); 974 AddFilter(bluetooth_dispatcher_host_.get());
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
2562 void RenderProcessHostImpl::GetAudioOutputControllers( 2564 void RenderProcessHostImpl::GetAudioOutputControllers(
2563 const GetAudioOutputControllersCallback& callback) const { 2565 const GetAudioOutputControllersCallback& callback) const {
2564 audio_renderer_host()->GetOutputControllers(callback); 2566 audio_renderer_host()->GetOutputControllers(callback);
2565 } 2567 }
2566 2568
2567 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2569 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2568 return bluetooth_dispatcher_host_.get(); 2570 return bluetooth_dispatcher_host_.get();
2569 } 2571 }
2570 2572
2571 } // namespace content 2573 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/memory/memory_pressure_controller_browsertest.cc ('k') | content/child/child_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698