| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "content/browser/fileapi/chrome_blob_storage_context.h" | 67 #include "content/browser/fileapi/chrome_blob_storage_context.h" |
| 68 #include "content/browser/fileapi/fileapi_message_filter.h" | 68 #include "content/browser/fileapi/fileapi_message_filter.h" |
| 69 #include "content/browser/frame_host/render_frame_message_filter.h" | 69 #include "content/browser/frame_host/render_frame_message_filter.h" |
| 70 #include "content/browser/geofencing/geofencing_dispatcher_host.h" | 70 #include "content/browser/geofencing/geofencing_dispatcher_host.h" |
| 71 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" | 71 #include "content/browser/gpu/browser_gpu_memory_buffer_manager.h" |
| 72 #include "content/browser/gpu/compositor_util.h" | 72 #include "content/browser/gpu/compositor_util.h" |
| 73 #include "content/browser/gpu/gpu_data_manager_impl.h" | 73 #include "content/browser/gpu/gpu_data_manager_impl.h" |
| 74 #include "content/browser/gpu/gpu_process_host.h" | 74 #include "content/browser/gpu/gpu_process_host.h" |
| 75 #include "content/browser/gpu/shader_disk_cache.h" | 75 #include "content/browser/gpu/shader_disk_cache.h" |
| 76 #include "content/browser/histogram_message_filter.h" | 76 #include "content/browser/histogram_message_filter.h" |
| 77 #include "content/browser/host_zoom_level_impl.h" |
| 77 #include "content/browser/indexed_db/indexed_db_context_impl.h" | 78 #include "content/browser/indexed_db/indexed_db_context_impl.h" |
| 78 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" | 79 #include "content/browser/indexed_db/indexed_db_dispatcher_host.h" |
| 79 #include "content/browser/loader/resource_message_filter.h" | 80 #include "content/browser/loader/resource_message_filter.h" |
| 80 #include "content/browser/loader/resource_scheduler_filter.h" | 81 #include "content/browser/loader/resource_scheduler_filter.h" |
| 81 #include "content/browser/media/capture/audio_mirroring_manager.h" | 82 #include "content/browser/media/capture/audio_mirroring_manager.h" |
| 82 #include "content/browser/media/capture/image_capture_impl.h" | 83 #include "content/browser/media/capture/image_capture_impl.h" |
| 83 #include "content/browser/media/media_internals.h" | 84 #include "content/browser/media/media_internals.h" |
| 84 #include "content/browser/media/midi_host.h" | 85 #include "content/browser/media/midi_host.h" |
| 85 #include "content/browser/memory/memory_message_filter.h" | 86 #include "content/browser/memory/memory_message_filter.h" |
| 86 #include "content/browser/message_port_message_filter.h" | 87 #include "content/browser/message_port_message_filter.h" |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 1045 mojo_application_host_->service_registry()->AddService( | 1046 mojo_application_host_->service_registry()->AddService( |
| 1046 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, | 1047 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, |
| 1047 base::Unretained(this))); | 1048 base::Unretained(this))); |
| 1048 | 1049 |
| 1050 mojo_application_host_->service_registry()->AddService( |
| 1051 base::Bind(&HostZoomLevelImpl::Create, |
| 1052 base::Unretained(GetBrowserContext()), GetID())); |
| 1053 |
| 1049 #if defined(OS_ANDROID) | 1054 #if defined(OS_ANDROID) |
| 1050 ServiceRegistrarAndroid::RegisterProcessHostServices( | 1055 ServiceRegistrarAndroid::RegisterProcessHostServices( |
| 1051 mojo_application_host_->service_registry_android()); | 1056 mojo_application_host_->service_registry_android()); |
| 1052 #endif | 1057 #endif |
| 1053 | 1058 |
| 1054 GetContentClient()->browser()->RegisterRenderProcessMojoServices( | 1059 GetContentClient()->browser()->RegisterRenderProcessMojoServices( |
| 1055 mojo_application_host_->service_registry()); | 1060 mojo_application_host_->service_registry()); |
| 1056 } | 1061 } |
| 1057 | 1062 |
| 1058 void RenderProcessHostImpl::CreateStoragePartitionService( | 1063 void RenderProcessHostImpl::CreateStoragePartitionService( |
| (...skipping 1702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2761 | 2766 |
| 2762 // Skip widgets in other processes. | 2767 // Skip widgets in other processes. |
| 2763 if (rvh->GetProcess()->GetID() != GetID()) | 2768 if (rvh->GetProcess()->GetID() != GetID()) |
| 2764 continue; | 2769 continue; |
| 2765 | 2770 |
| 2766 rvh->OnWebkitPreferencesChanged(); | 2771 rvh->OnWebkitPreferencesChanged(); |
| 2767 } | 2772 } |
| 2768 } | 2773 } |
| 2769 | 2774 |
| 2770 } // namespace content | 2775 } // namespace content |
| OLD | NEW |