| OLD | NEW |
| 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 Loading... |
| 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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1034 base::Unretained(permission_service_context_.get()))); | 1035 base::Unretained(permission_service_context_.get()))); |
| 1035 | 1036 |
| 1036 // TODO(mcasas): finalize arguments. | 1037 // TODO(mcasas): finalize arguments. |
| 1037 mojo_application_host_->service_registry()->AddService( | 1038 mojo_application_host_->service_registry()->AddService( |
| 1038 base::Bind(&ImageCaptureImpl::Create)); | 1039 base::Bind(&ImageCaptureImpl::Create)); |
| 1039 | 1040 |
| 1040 mojo_application_host_->service_registry()->AddService(base::Bind( | 1041 mojo_application_host_->service_registry()->AddService(base::Bind( |
| 1041 &BackgroundSyncContextImpl::CreateService, | 1042 &BackgroundSyncContextImpl::CreateService, |
| 1042 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); | 1043 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); |
| 1043 | 1044 |
| 1045 mojo_application_host_->service_registry()->AddService(base::Bind( |
| 1046 &PlatformNotificationContextImpl::CreateService, |
| 1047 base::Unretained( |
| 1048 storage_partition_impl_->GetPlatformNotificationContext()), GetID())); |
| 1049 |
| 1044 mojo_application_host_->service_registry()->AddService( | 1050 mojo_application_host_->service_registry()->AddService( |
| 1045 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, | 1051 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, |
| 1046 base::Unretained(this))); | 1052 base::Unretained(this))); |
| 1047 | 1053 |
| 1048 #if defined(OS_ANDROID) | 1054 #if defined(OS_ANDROID) |
| 1049 ServiceRegistrarAndroid::RegisterProcessHostServices( | 1055 ServiceRegistrarAndroid::RegisterProcessHostServices( |
| 1050 mojo_application_host_->service_registry_android()); | 1056 mojo_application_host_->service_registry_android()); |
| 1051 #endif | 1057 #endif |
| 1052 | 1058 |
| 1053 GetContentClient()->browser()->RegisterRenderProcessMojoServices( | 1059 GetContentClient()->browser()->RegisterRenderProcessMojoServices( |
| (...skipping 1698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2752 | 2758 |
| 2753 // Skip widgets in other processes. | 2759 // Skip widgets in other processes. |
| 2754 if (rvh->GetProcess()->GetID() != GetID()) | 2760 if (rvh->GetProcess()->GetID() != GetID()) |
| 2755 continue; | 2761 continue; |
| 2756 | 2762 |
| 2757 rvh->OnWebkitPreferencesChanged(); | 2763 rvh->OnWebkitPreferencesChanged(); |
| 2758 } | 2764 } |
| 2759 } | 2765 } |
| 2760 | 2766 |
| 2761 } // namespace content | 2767 } // namespace content |
| OLD | NEW |