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

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

Issue 1904163002: Move Web Notifications to use Mojo Base URL: https://chromium.googlesource.com/chromium/src.git@skbitmap-blink
Patch Set: it works \o/ Created 4 years, 7 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 #include "content/browser/loader/resource_scheduler_filter.h" 81 #include "content/browser/loader/resource_scheduler_filter.h"
82 #include "content/browser/media/capture/audio_mirroring_manager.h" 82 #include "content/browser/media/capture/audio_mirroring_manager.h"
83 #include "content/browser/media/media_internals.h" 83 #include "content/browser/media/media_internals.h"
84 #include "content/browser/media/midi_host.h" 84 #include "content/browser/media/midi_host.h"
85 #include "content/browser/memory/memory_message_filter.h" 85 #include "content/browser/memory/memory_message_filter.h"
86 #include "content/browser/message_port_message_filter.h" 86 #include "content/browser/message_port_message_filter.h"
87 #include "content/browser/mime_registry_message_filter.h" 87 #include "content/browser/mime_registry_message_filter.h"
88 #include "content/browser/mojo/constants.h" 88 #include "content/browser/mojo/constants.h"
89 #include "content/browser/mojo/mojo_application_host.h" 89 #include "content/browser/mojo/mojo_application_host.h"
90 #include "content/browser/mojo/mojo_child_connection.h" 90 #include "content/browser/mojo/mojo_child_connection.h"
91 #include "content/browser/notifications/notification_message_filter.h" 91 #include "content/browser/notifications/platform_notification_context_impl.h"
92 #include "content/browser/permissions/permission_service_context.h" 92 #include "content/browser/permissions/permission_service_context.h"
93 #include "content/browser/permissions/permission_service_impl.h" 93 #include "content/browser/permissions/permission_service_impl.h"
94 #include "content/browser/profiler_message_filter.h" 94 #include "content/browser/profiler_message_filter.h"
95 #include "content/browser/push_messaging/push_messaging_message_filter.h" 95 #include "content/browser/push_messaging/push_messaging_message_filter.h"
96 #include "content/browser/quota_dispatcher_host.h" 96 #include "content/browser/quota_dispatcher_host.h"
97 #include "content/browser/renderer_host/clipboard_message_filter.h" 97 #include "content/browser/renderer_host/clipboard_message_filter.h"
98 #include "content/browser/renderer_host/database_message_filter.h" 98 #include "content/browser/renderer_host/database_message_filter.h"
99 #include "content/browser/renderer_host/file_utilities_message_filter.h" 99 #include "content/browser/renderer_host/file_utilities_message_filter.h"
100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
101 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 101 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
(...skipping 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 resource_context, request_context.get()); 1019 resource_context, request_context.get());
1020 AddFilter(p2p_socket_dispatcher_host_.get()); 1020 AddFilter(p2p_socket_dispatcher_host_.get());
1021 #endif 1021 #endif
1022 1022
1023 AddFilter(new TraceMessageFilter(GetID())); 1023 AddFilter(new TraceMessageFilter(GetID()));
1024 AddFilter(new ResolveProxyMsgHelper(request_context.get())); 1024 AddFilter(new ResolveProxyMsgHelper(request_context.get()));
1025 AddFilter(new QuotaDispatcherHost( 1025 AddFilter(new QuotaDispatcherHost(
1026 GetID(), storage_partition_impl_->GetQuotaManager(), 1026 GetID(), storage_partition_impl_->GetQuotaManager(),
1027 GetContentClient()->browser()->CreateQuotaPermissionContext())); 1027 GetContentClient()->browser()->CreateQuotaPermissionContext()));
1028 1028
1029 notification_message_filter_ = new NotificationMessageFilter(
1030 GetID(), storage_partition_impl_->GetPlatformNotificationContext(),
1031 resource_context, browser_context);
1032 AddFilter(notification_message_filter_.get());
1033
1034 AddFilter(new GamepadBrowserMessageFilter()); 1029 AddFilter(new GamepadBrowserMessageFilter());
1035 AddFilter(new DeviceLightMessageFilter()); 1030 AddFilter(new DeviceLightMessageFilter());
1036 AddFilter(new DeviceMotionMessageFilter()); 1031 AddFilter(new DeviceMotionMessageFilter());
1037 AddFilter(new DeviceOrientationMessageFilter()); 1032 AddFilter(new DeviceOrientationMessageFilter());
1038 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); 1033 AddFilter(new DeviceOrientationAbsoluteMessageFilter());
1039 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 1034 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
1040 AddFilter(new HistogramMessageFilter()); 1035 AddFilter(new HistogramMessageFilter());
1041 AddFilter(new MemoryMessageFilter(this)); 1036 AddFilter(new MemoryMessageFilter(this));
1042 AddFilter(new PushMessagingMessageFilter( 1037 AddFilter(new PushMessagingMessageFilter(
1043 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 1038 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
(...skipping 25 matching lines...) Expand all
1069 #endif 1064 #endif
1070 1065
1071 mojo_application_host_->service_registry()->AddService( 1066 mojo_application_host_->service_registry()->AddService(
1072 base::Bind(&PermissionServiceContext::CreateService, 1067 base::Bind(&PermissionServiceContext::CreateService,
1073 base::Unretained(permission_service_context_.get()))); 1068 base::Unretained(permission_service_context_.get())));
1074 1069
1075 mojo_application_host_->service_registry()->AddService(base::Bind( 1070 mojo_application_host_->service_registry()->AddService(base::Bind(
1076 &BackgroundSyncContextImpl::CreateService, 1071 &BackgroundSyncContextImpl::CreateService,
1077 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1072 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1078 1073
1074 mojo_application_host_->service_registry()->AddService(base::Bind(
1075 &PlatformNotificationContextImpl::CreateService,
1076 base::Unretained(
1077 storage_partition_impl_->GetPlatformNotificationContext()), GetID()));
1078
1079 mojo_application_host_->service_registry()->AddService( 1079 mojo_application_host_->service_registry()->AddService(
1080 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, 1080 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
1081 base::Unretained(this))); 1081 base::Unretained(this)));
1082 1082
1083 #if defined(OS_ANDROID) 1083 #if defined(OS_ANDROID)
1084 ServiceRegistrarAndroid::RegisterProcessHostServices( 1084 ServiceRegistrarAndroid::RegisterProcessHostServices(
1085 mojo_application_host_->service_registry_android()); 1085 mojo_application_host_->service_registry_android());
1086 #endif 1086 #endif
1087 1087
1088 GetContentClient()->browser()->RegisterRenderProcessMojoServices( 1088 GetContentClient()->browser()->RegisterRenderProcessMojoServices(
(...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after
2797 2797
2798 // Skip widgets in other processes. 2798 // Skip widgets in other processes.
2799 if (rvh->GetProcess()->GetID() != GetID()) 2799 if (rvh->GetProcess()->GetID() != GetID())
2800 continue; 2800 continue;
2801 2801
2802 rvh->OnWebkitPreferencesChanged(); 2802 rvh->OnWebkitPreferencesChanged();
2803 } 2803 }
2804 } 2804 }
2805 2805
2806 } // namespace content 2806 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.h ('k') | content/child/blink_platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698