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

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: resolves the promise Created 4 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 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 909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 resource_context, request_context.get()); 1011 resource_context, request_context.get());
1012 AddFilter(p2p_socket_dispatcher_host_.get()); 1012 AddFilter(p2p_socket_dispatcher_host_.get());
1013 #endif 1013 #endif
1014 1014
1015 AddFilter(new TraceMessageFilter(GetID())); 1015 AddFilter(new TraceMessageFilter(GetID()));
1016 AddFilter(new ResolveProxyMsgHelper(request_context.get())); 1016 AddFilter(new ResolveProxyMsgHelper(request_context.get()));
1017 AddFilter(new QuotaDispatcherHost( 1017 AddFilter(new QuotaDispatcherHost(
1018 GetID(), storage_partition_impl_->GetQuotaManager(), 1018 GetID(), storage_partition_impl_->GetQuotaManager(),
1019 GetContentClient()->browser()->CreateQuotaPermissionContext())); 1019 GetContentClient()->browser()->CreateQuotaPermissionContext()));
1020 1020
1021 notification_message_filter_ = new NotificationMessageFilter(
1022 GetID(), storage_partition_impl_->GetPlatformNotificationContext(),
1023 resource_context, browser_context);
1024 AddFilter(notification_message_filter_.get());
1025
1026 AddFilter(new GamepadBrowserMessageFilter()); 1021 AddFilter(new GamepadBrowserMessageFilter());
1027 AddFilter(new DeviceLightMessageFilter()); 1022 AddFilter(new DeviceLightMessageFilter());
1028 AddFilter(new DeviceMotionMessageFilter()); 1023 AddFilter(new DeviceMotionMessageFilter());
1029 AddFilter(new DeviceOrientationMessageFilter()); 1024 AddFilter(new DeviceOrientationMessageFilter());
1030 AddFilter(new DeviceOrientationAbsoluteMessageFilter()); 1025 AddFilter(new DeviceOrientationAbsoluteMessageFilter());
1031 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER)); 1026 AddFilter(new ProfilerMessageFilter(PROCESS_TYPE_RENDERER));
1032 AddFilter(new HistogramMessageFilter()); 1027 AddFilter(new HistogramMessageFilter());
1033 AddFilter(new MemoryMessageFilter(this)); 1028 AddFilter(new MemoryMessageFilter(this));
1034 AddFilter(new PushMessagingMessageFilter( 1029 AddFilter(new PushMessagingMessageFilter(
1035 GetID(), storage_partition_impl_->GetServiceWorkerContext())); 1030 GetID(), storage_partition_impl_->GetServiceWorkerContext()));
(...skipping 25 matching lines...) Expand all
1061 #endif 1056 #endif
1062 1057
1063 mojo_application_host_->service_registry()->AddService( 1058 mojo_application_host_->service_registry()->AddService(
1064 base::Bind(&PermissionServiceContext::CreateService, 1059 base::Bind(&PermissionServiceContext::CreateService,
1065 base::Unretained(permission_service_context_.get()))); 1060 base::Unretained(permission_service_context_.get())));
1066 1061
1067 mojo_application_host_->service_registry()->AddService(base::Bind( 1062 mojo_application_host_->service_registry()->AddService(base::Bind(
1068 &BackgroundSyncContextImpl::CreateService, 1063 &BackgroundSyncContextImpl::CreateService,
1069 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1064 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1070 1065
1066 mojo_application_host_->service_registry()->AddService(base::Bind(
1067 &PlatformNotificationContextImpl::CreateService,
1068 base::Unretained(
1069 storage_partition_impl_->GetPlatformNotificationContext())));
1070
1071 mojo_application_host_->service_registry()->AddService( 1071 mojo_application_host_->service_registry()->AddService(
1072 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, 1072 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
1073 base::Unretained(this))); 1073 base::Unretained(this)));
1074 1074
1075 #if defined(OS_ANDROID) 1075 #if defined(OS_ANDROID)
1076 ServiceRegistrarAndroid::RegisterProcessHostServices( 1076 ServiceRegistrarAndroid::RegisterProcessHostServices(
1077 mojo_application_host_->service_registry_android()); 1077 mojo_application_host_->service_registry_android());
1078 #endif 1078 #endif
1079 1079
1080 GetContentClient()->browser()->RegisterRenderProcessMojoServices( 1080 GetContentClient()->browser()->RegisterRenderProcessMojoServices(
(...skipping 1708 matching lines...) Expand 10 before | Expand all | Expand 10 after
2789 2789
2790 // Skip widgets in other processes. 2790 // Skip widgets in other processes.
2791 if (rvh->GetProcess()->GetID() != GetID()) 2791 if (rvh->GetProcess()->GetID() != GetID())
2792 continue; 2792 continue;
2793 2793
2794 rvh->OnWebkitPreferencesChanged(); 2794 rvh->OnWebkitPreferencesChanged();
2795 } 2795 }
2796 } 2796 }
2797 2797
2798 } // namespace content 2798 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698