| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 #include "content/browser/media/capture/image_capture_impl.h" | 81 #include "content/browser/media/capture/image_capture_impl.h" |
| 82 #include "content/browser/media/media_internals.h" | 82 #include "content/browser/media/media_internals.h" |
| 83 #include "content/browser/media/midi_host.h" | 83 #include "content/browser/media/midi_host.h" |
| 84 #include "content/browser/memory/memory_message_filter.h" | 84 #include "content/browser/memory/memory_message_filter.h" |
| 85 #include "content/browser/message_port_message_filter.h" | 85 #include "content/browser/message_port_message_filter.h" |
| 86 #include "content/browser/mime_registry_message_filter.h" | 86 #include "content/browser/mime_registry_message_filter.h" |
| 87 #include "content/browser/mojo/constants.h" | 87 #include "content/browser/mojo/constants.h" |
| 88 #include "content/browser/mojo/mojo_application_host.h" | 88 #include "content/browser/mojo/mojo_application_host.h" |
| 89 #include "content/browser/mojo/mojo_child_connection.h" | 89 #include "content/browser/mojo/mojo_child_connection.h" |
| 90 #include "content/browser/notifications/notification_message_filter.h" | 90 #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" | 91 #include "content/browser/permissions/permission_service_context.h" |
| 93 #include "content/browser/permissions/permission_service_impl.h" | 92 #include "content/browser/permissions/permission_service_impl.h" |
| 94 #include "content/browser/profiler_message_filter.h" | 93 #include "content/browser/profiler_message_filter.h" |
| 95 #include "content/browser/push_messaging/push_messaging_message_filter.h" | 94 #include "content/browser/push_messaging/push_messaging_message_filter.h" |
| 96 #include "content/browser/quota_dispatcher_host.h" | 95 #include "content/browser/quota_dispatcher_host.h" |
| 97 #include "content/browser/renderer_host/clipboard_message_filter.h" | 96 #include "content/browser/renderer_host/clipboard_message_filter.h" |
| 98 #include "content/browser/renderer_host/database_message_filter.h" | 97 #include "content/browser/renderer_host/database_message_filter.h" |
| 99 #include "content/browser/renderer_host/file_utilities_message_filter.h" | 98 #include "content/browser/renderer_host/file_utilities_message_filter.h" |
| 100 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" | 99 #include "content/browser/renderer_host/gamepad_browser_message_filter.h" |
| 101 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" | 100 #include "content/browser/renderer_host/media/audio_input_renderer_host.h" |
| (...skipping 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1033 base::Unretained(permission_service_context_.get()))); | 1032 base::Unretained(permission_service_context_.get()))); |
| 1034 | 1033 |
| 1035 // TODO(mcasas): finalize arguments. | 1034 // TODO(mcasas): finalize arguments. |
| 1036 mojo_application_host_->service_registry()->AddService( | 1035 mojo_application_host_->service_registry()->AddService( |
| 1037 base::Bind(&ImageCaptureImpl::Create)); | 1036 base::Bind(&ImageCaptureImpl::Create)); |
| 1038 | 1037 |
| 1039 mojo_application_host_->service_registry()->AddService(base::Bind( | 1038 mojo_application_host_->service_registry()->AddService(base::Bind( |
| 1040 &BackgroundSyncContext::CreateService, | 1039 &BackgroundSyncContext::CreateService, |
| 1041 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); | 1040 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); |
| 1042 | 1041 |
| 1043 mojo_application_host_->service_registry()->AddService(base::Bind( | |
| 1044 &PlatformNotificationContextImpl::CreateService, | |
| 1045 base::Unretained( | |
| 1046 storage_partition_impl_->GetPlatformNotificationContext()), GetID())); | |
| 1047 | |
| 1048 mojo_application_host_->service_registry()->AddService( | 1042 mojo_application_host_->service_registry()->AddService( |
| 1049 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, | 1043 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, |
| 1050 base::Unretained(this))); | 1044 base::Unretained(this))); |
| 1051 | 1045 |
| 1052 #if defined(OS_ANDROID) | 1046 #if defined(OS_ANDROID) |
| 1053 ServiceRegistrarAndroid::RegisterProcessHostServices( | 1047 ServiceRegistrarAndroid::RegisterProcessHostServices( |
| 1054 mojo_application_host_->service_registry_android()); | 1048 mojo_application_host_->service_registry_android()); |
| 1055 #endif | 1049 #endif |
| 1056 | 1050 |
| 1057 GetContentClient()->browser()->RegisterRenderProcessMojoServices( | 1051 GetContentClient()->browser()->RegisterRenderProcessMojoServices( |
| (...skipping 1713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2771 | 2765 |
| 2772 // Skip widgets in other processes. | 2766 // Skip widgets in other processes. |
| 2773 if (rvh->GetProcess()->GetID() != GetID()) | 2767 if (rvh->GetProcess()->GetID() != GetID()) |
| 2774 continue; | 2768 continue; |
| 2775 | 2769 |
| 2776 rvh->OnWebkitPreferencesChanged(); | 2770 rvh->OnWebkitPreferencesChanged(); |
| 2777 } | 2771 } |
| 2778 } | 2772 } |
| 2779 | 2773 |
| 2780 } // namespace content | 2774 } // namespace content |
| OLD | NEW |