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

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

Issue 1948223004: 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, 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 #include "content/browser/media/capture/image_capture_impl.h" 82 #include "content/browser/media/capture/image_capture_impl.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/notification_message_filter.h"
92 #include "content/browser/notifications/platform_notification_context_impl.h"
92 #include "content/browser/permissions/permission_service_context.h" 93 #include "content/browser/permissions/permission_service_context.h"
93 #include "content/browser/permissions/permission_service_impl.h" 94 #include "content/browser/permissions/permission_service_impl.h"
94 #include "content/browser/profiler_message_filter.h" 95 #include "content/browser/profiler_message_filter.h"
95 #include "content/browser/push_messaging/push_messaging_message_filter.h" 96 #include "content/browser/push_messaging/push_messaging_message_filter.h"
96 #include "content/browser/quota_dispatcher_host.h" 97 #include "content/browser/quota_dispatcher_host.h"
97 #include "content/browser/renderer_host/clipboard_message_filter.h" 98 #include "content/browser/renderer_host/clipboard_message_filter.h"
98 #include "content/browser/renderer_host/database_message_filter.h" 99 #include "content/browser/renderer_host/database_message_filter.h"
99 #include "content/browser/renderer_host/file_utilities_message_filter.h" 100 #include "content/browser/renderer_host/file_utilities_message_filter.h"
100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" 101 #include "content/browser/renderer_host/gamepad_browser_message_filter.h"
101 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" 102 #include "content/browser/renderer_host/media/audio_input_renderer_host.h"
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 base::Unretained(permission_service_context_.get()))); 1036 base::Unretained(permission_service_context_.get())));
1036 1037
1037 // TODO(mcasas): finalize arguments. 1038 // TODO(mcasas): finalize arguments.
1038 mojo_application_host_->service_registry()->AddService( 1039 mojo_application_host_->service_registry()->AddService(
1039 base::Bind(&ImageCaptureImpl::Create)); 1040 base::Bind(&ImageCaptureImpl::Create));
1040 1041
1041 mojo_application_host_->service_registry()->AddService(base::Bind( 1042 mojo_application_host_->service_registry()->AddService(base::Bind(
1042 &BackgroundSyncContext::CreateService, 1043 &BackgroundSyncContext::CreateService,
1043 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); 1044 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext())));
1044 1045
1046 mojo_application_host_->service_registry()->AddService(base::Bind(
1047 &PlatformNotificationContextImpl::CreateService,
1048 base::Unretained(
1049 storage_partition_impl_->GetPlatformNotificationContext()), GetID()));
1050
1045 mojo_application_host_->service_registry()->AddService( 1051 mojo_application_host_->service_registry()->AddService(
1046 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, 1052 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService,
1047 base::Unretained(this))); 1053 base::Unretained(this)));
1048 1054
1049 #if defined(OS_ANDROID) 1055 #if defined(OS_ANDROID)
1050 ServiceRegistrarAndroid::RegisterProcessHostServices( 1056 ServiceRegistrarAndroid::RegisterProcessHostServices(
1051 mojo_application_host_->service_registry_android()); 1057 mojo_application_host_->service_registry_android());
1052 #endif 1058 #endif
1053 1059
1054 GetContentClient()->browser()->RegisterRenderProcessMojoServices( 1060 GetContentClient()->browser()->RegisterRenderProcessMojoServices(
(...skipping 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 2767
2762 // Skip widgets in other processes. 2768 // Skip widgets in other processes.
2763 if (rvh->GetProcess()->GetID() != GetID()) 2769 if (rvh->GetProcess()->GetID() != GetID())
2764 continue; 2770 continue;
2765 2771
2766 rvh->OnWebkitPreferencesChanged(); 2772 rvh->OnWebkitPreferencesChanged();
2767 } 2773 }
2768 } 2774 }
2769 2775
2770 } // namespace content 2776 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698