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

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

Issue 1359873002: Revert of Architecture for cross-process memory notification suppressing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 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"
77 #include "content/browser/message_port_message_filter.h" 76 #include "content/browser/message_port_message_filter.h"
78 #include "content/browser/mime_registry_message_filter.h" 77 #include "content/browser/mime_registry_message_filter.h"
79 #include "content/browser/mojo/mojo_application_host.h" 78 #include "content/browser/mojo/mojo_application_host.h"
80 #include "content/browser/navigator_connect/service_port_service_impl.h" 79 #include "content/browser/navigator_connect/service_port_service_impl.h"
81 #include "content/browser/notifications/notification_message_filter.h" 80 #include "content/browser/notifications/notification_message_filter.h"
82 #include "content/browser/permissions/permission_service_context.h" 81 #include "content/browser/permissions/permission_service_context.h"
83 #include "content/browser/permissions/permission_service_impl.h" 82 #include "content/browser/permissions/permission_service_impl.h"
84 #include "content/browser/profiler_message_filter.h" 83 #include "content/browser/profiler_message_filter.h"
85 #include "content/browser/push_messaging/push_messaging_message_filter.h" 84 #include "content/browser/push_messaging/push_messaging_message_filter.h"
86 #include "content/browser/quota_dispatcher_host.h" 85 #include "content/browser/quota_dispatcher_host.h"
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 AddFilter(new GamepadBrowserMessageFilter()); 953 AddFilter(new GamepadBrowserMessageFilter());
955 AddFilter(new DeviceLightMessageFilter()); 954 AddFilter(new DeviceLightMessageFilter());
956 AddFilter(new DeviceMotionMessageFilter()); 955 AddFilter(new DeviceMotionMessageFilter());
957 AddFilter(new DeviceOrientationMessageFilter()); 956 AddFilter(new DeviceOrientationMessageFilter());
958 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 957 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
959 AddFilter(new HistogramMessageFilter()); 958 AddFilter(new HistogramMessageFilter());
960 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID)) 959 #if defined(USE_TCMALLOC) && (defined(OS_LINUX) || defined(OS_ANDROID))
961 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) 960 if (browser_command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
962 AddFilter(new MemoryBenchmarkMessageFilter()); 961 AddFilter(new MemoryBenchmarkMessageFilter());
963 #endif 962 #endif
964 AddFilter(new MemoryMessageFilter());
965 AddFilter(new PushMessagingMessageFilter( 963 AddFilter(new PushMessagingMessageFilter(
966 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 964 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
967 #if defined(OS_ANDROID) 965 #if defined(OS_ANDROID)
968 AddFilter(new ScreenOrientationMessageFilterAndroid()); 966 AddFilter(new ScreenOrientationMessageFilterAndroid());
969 #endif 967 #endif
970 AddFilter(new GeofencingDispatcherHost( 968 AddFilter(new GeofencingDispatcherHost(
971 storage_partition_impl_->GetGeofencingManager())); 969 storage_partition_impl_->GetGeofencingManager()));
972 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) { 970 if (browser_command_line.HasSwitch(switches::kEnableWebBluetooth)) {
973 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID()); 971 bluetooth_dispatcher_host_ = new BluetoothDispatcherHost(GetID());
974 AddFilter(bluetooth_dispatcher_host_.get()); 972 AddFilter(bluetooth_dispatcher_host_.get());
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
2564 void RenderProcessHostImpl::GetAudioOutputControllers( 2562 void RenderProcessHostImpl::GetAudioOutputControllers(
2565 const GetAudioOutputControllersCallback& callback) const { 2563 const GetAudioOutputControllersCallback& callback) const {
2566 audio_renderer_host()->GetOutputControllers(callback); 2564 audio_renderer_host()->GetOutputControllers(callback);
2567 } 2565 }
2568 2566
2569 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2567 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2570 return bluetooth_dispatcher_host_.get(); 2568 return bluetooth_dispatcher_host_.get();
2571 } 2569 }
2572 2570
2573 } // namespace content 2571 } // 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