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

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

Issue 2003023002: Introduce the Blink NotificationService, move permission checks there (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 #include "content/browser/media/capture/image_capture_impl.h" 80 #include "content/browser/media/capture/image_capture_impl.h"
81 #include "content/browser/media/media_internals.h" 81 #include "content/browser/media/media_internals.h"
82 #include "content/browser/media/midi_host.h" 82 #include "content/browser/media/midi_host.h"
83 #include "content/browser/memory/memory_message_filter.h" 83 #include "content/browser/memory/memory_message_filter.h"
84 #include "content/browser/message_port_message_filter.h" 84 #include "content/browser/message_port_message_filter.h"
85 #include "content/browser/mime_registry_message_filter.h" 85 #include "content/browser/mime_registry_message_filter.h"
86 #include "content/browser/mojo/constants.h" 86 #include "content/browser/mojo/constants.h"
87 #include "content/browser/mojo/mojo_application_host.h" 87 #include "content/browser/mojo/mojo_application_host.h"
88 #include "content/browser/mojo/mojo_child_connection.h" 88 #include "content/browser/mojo/mojo_child_connection.h"
89 #include "content/browser/notifications/notification_message_filter.h" 89 #include "content/browser/notifications/notification_message_filter.h"
90 #include "content/browser/notifications/platform_notification_context_impl.h"
90 #include "content/browser/permissions/permission_service_context.h" 91 #include "content/browser/permissions/permission_service_context.h"
91 #include "content/browser/permissions/permission_service_impl.h" 92 #include "content/browser/permissions/permission_service_impl.h"
92 #include "content/browser/profiler_message_filter.h" 93 #include "content/browser/profiler_message_filter.h"
93 #include "content/browser/push_messaging/push_messaging_message_filter.h" 94 #include "content/browser/push_messaging/push_messaging_message_filter.h"
94 #include "content/browser/quota_dispatcher_host.h" 95 #include "content/browser/quota_dispatcher_host.h"
95 #include "content/browser/renderer_host/clipboard_message_filter.h" 96 #include "content/browser/renderer_host/clipboard_message_filter.h"
96 #include "content/browser/renderer_host/database_message_filter.h" 97 #include "content/browser/renderer_host/database_message_filter.h"
97 #include "content/browser/renderer_host/file_utilities_message_filter.h" 98 #include "content/browser/renderer_host/file_utilities_message_filter.h"
98 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 99 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
99 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 100 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 base::Unretained(permission_service_context_.get()))); 1070 base::Unretained(permission_service_context_.get())));
1070 1071
1071 // TODO(mcasas): finalize arguments. 1072 // TODO(mcasas): finalize arguments.
1072 mojo_application_host_->service_registry()->AddService( 1073 mojo_application_host_->service_registry()->AddService(
1073 base::Bind(&ImageCaptureImpl::Create)); 1074 base::Bind(&ImageCaptureImpl::Create));
1074 1075
1075 mojo_application_host_->service_registry()->AddService(base::Bind( 1076 mojo_application_host_->service_registry()->AddService(base::Bind(
1076 &BackgroundSyncContext::CreateService, 1077 &BackgroundSyncContext::CreateService,
1077 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1078 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1078 1079
1080 mojo_application_host_->service_registry()->AddService(base::Bind(
1081 &PlatformNotificationContextImpl::CreateService,
1082 base::Unretained(
1083 storage_partition_impl_->GetPlatformNotificationContext()), GetID()));
1084
1079 mojo_application_host_->service_registry()->AddService( 1085 mojo_application_host_->service_registry()->AddService(
1080 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, 1086 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
1081 base::Unretained(this))); 1087 base::Unretained(this)));
1082 1088
1083 #if defined(OS_ANDROID) 1089 #if defined(OS_ANDROID)
1084 ServiceRegistrarAndroid::RegisterProcessHostServices( 1090 ServiceRegistrarAndroid::RegisterProcessHostServices(
1085 mojo_application_host_->service_registry_android()); 1091 mojo_application_host_->service_registry_android());
1086 #endif 1092 #endif
1087 1093
1088 GetContentClient()->browser()->RegisterRenderProcessMojoServices( 1094 GetContentClient()->browser()->RegisterRenderProcessMojoServices(
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after
2781 2787
2782 // Skip widgets in other processes. 2788 // Skip widgets in other processes.
2783 if (rvh->GetProcess()->GetID() != GetID()) 2789 if (rvh->GetProcess()->GetID() != GetID())
2784 continue; 2790 continue;
2785 2791
2786 rvh->OnWebkitPreferencesChanged(); 2792 rvh->OnWebkitPreferencesChanged();
2787 } 2793 }
2788 } 2794 }
2789 2795
2790 } // namespace content 2796 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698