| 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 27 matching lines...) Expand all Loading... |
| 38 #include "base/supports_user_data.h" | 38 #include "base/supports_user_data.h" |
| 39 #include "base/sys_info.h" | 39 #include "base/sys_info.h" |
| 40 #include "base/threading/thread.h" | 40 #include "base/threading/thread.h" |
| 41 #include "base/threading/thread_restrictions.h" | 41 #include "base/threading/thread_restrictions.h" |
| 42 #include "base/trace_event/trace_event.h" | 42 #include "base/trace_event/trace_event.h" |
| 43 #include "base/tracked_objects.h" | 43 #include "base/tracked_objects.h" |
| 44 #include "build/build_config.h" | 44 #include "build/build_config.h" |
| 45 #include "cc/base/switches.h" | 45 #include "cc/base/switches.h" |
| 46 #include "components/scheduler/common/scheduler_switches.h" | 46 #include "components/scheduler/common/scheduler_switches.h" |
| 47 #include "components/tracing/common/tracing_switches.h" | 47 #include "components/tracing/common/tracing_switches.h" |
| 48 #include "components/webmessaging/broadcast_channel_service.h" |
| 48 #include "content/browser/appcache/appcache_dispatcher_host.h" | 49 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 49 #include "content/browser/appcache/chrome_appcache_service.h" | 50 #include "content/browser/appcache/chrome_appcache_service.h" |
| 50 #include "content/browser/background_sync/background_sync_service_impl.h" | 51 #include "content/browser/background_sync/background_sync_service_impl.h" |
| 51 #include "content/browser/bad_message.h" | 52 #include "content/browser/bad_message.h" |
| 52 #include "content/browser/blob_storage/blob_dispatcher_host.h" | 53 #include "content/browser/blob_storage/blob_dispatcher_host.h" |
| 53 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 54 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
| 54 #include "content/browser/browser_child_process_host_impl.h" | 55 #include "content/browser/browser_child_process_host_impl.h" |
| 55 #include "content/browser/browser_main.h" | 56 #include "content/browser/browser_main.h" |
| 56 #include "content/browser/browser_main_loop.h" | 57 #include "content/browser/browser_main_loop.h" |
| 57 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" | 58 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" |
| (...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 | 1081 |
| 1081 mojo_application_host_->service_registry()->AddService(base::Bind( | 1082 mojo_application_host_->service_registry()->AddService(base::Bind( |
| 1082 &PlatformNotificationContextImpl::CreateService, | 1083 &PlatformNotificationContextImpl::CreateService, |
| 1083 base::Unretained( | 1084 base::Unretained( |
| 1084 storage_partition_impl_->GetPlatformNotificationContext()), GetID())); | 1085 storage_partition_impl_->GetPlatformNotificationContext()), GetID())); |
| 1085 | 1086 |
| 1086 mojo_application_host_->service_registry()->AddService( | 1087 mojo_application_host_->service_registry()->AddService( |
| 1087 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, | 1088 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, |
| 1088 base::Unretained(this))); | 1089 base::Unretained(this))); |
| 1089 | 1090 |
| 1091 mojo_application_host_->service_registry()->AddService(base::Bind( |
| 1092 &webmessaging::BroadcastChannelService::Connect, |
| 1093 base::Unretained(storage_partition_impl_->GetBroadcastChannelService()))); |
| 1094 |
| 1090 mojo_application_host_->service_registry()->AddService( | 1095 mojo_application_host_->service_registry()->AddService( |
| 1091 base::Bind(&MimeRegistryImpl::Create), | 1096 base::Bind(&MimeRegistryImpl::Create), |
| 1092 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); | 1097 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); |
| 1093 | 1098 |
| 1094 #if defined(OS_ANDROID) | 1099 #if defined(OS_ANDROID) |
| 1095 ServiceRegistrarAndroid::RegisterProcessHostServices( | 1100 ServiceRegistrarAndroid::RegisterProcessHostServices( |
| 1096 mojo_application_host_->service_registry_android()); | 1101 mojo_application_host_->service_registry_android()); |
| 1097 #endif | 1102 #endif |
| 1098 | 1103 |
| 1099 GetContentClient()->browser()->RegisterRenderProcessMojoServices( | 1104 GetContentClient()->browser()->RegisterRenderProcessMojoServices( |
| (...skipping 1696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2796 | 2801 |
| 2797 // Skip widgets in other processes. | 2802 // Skip widgets in other processes. |
| 2798 if (rvh->GetProcess()->GetID() != GetID()) | 2803 if (rvh->GetProcess()->GetID() != GetID()) |
| 2799 continue; | 2804 continue; |
| 2800 | 2805 |
| 2801 rvh->OnWebkitPreferencesChanged(); | 2806 rvh->OnWebkitPreferencesChanged(); |
| 2802 } | 2807 } |
| 2803 } | 2808 } |
| 2804 | 2809 |
| 2805 } // namespace content | 2810 } // namespace content |
| OLD | NEW |