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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 #include "content/browser/storage_partition_impl.h" | 116 #include "content/browser/storage_partition_impl.h" |
117 #include "content/browser/streams/stream_context.h" | 117 #include "content/browser/streams/stream_context.h" |
118 #include "content/browser/tracing/trace_message_filter.h" | 118 #include "content/browser/tracing/trace_message_filter.h" |
119 #include "content/browser/webui/web_ui_controller_factory_registry.h" | 119 #include "content/browser/webui/web_ui_controller_factory_registry.h" |
120 #include "content/common/child_process_host_impl.h" | 120 #include "content/common/child_process_host_impl.h" |
121 #include "content/common/child_process_messages.h" | 121 #include "content/common/child_process_messages.h" |
122 #include "content/common/content_switches_internal.h" | 122 #include "content/common/content_switches_internal.h" |
123 #include "content/common/frame_messages.h" | 123 #include "content/common/frame_messages.h" |
124 #include "content/common/gpu/gpu_host_messages.h" | 124 #include "content/common/gpu/gpu_host_messages.h" |
125 #include "content/common/in_process_child_thread_params.h" | 125 #include "content/common/in_process_child_thread_params.h" |
| 126 #include "content/common/installedapp/installed_app_provider_impl.h" |
126 #include "content/common/mojo/channel_init.h" | 127 #include "content/common/mojo/channel_init.h" |
127 #include "content/common/mojo/mojo_messages.h" | 128 #include "content/common/mojo/mojo_messages.h" |
128 #include "content/common/mojo/mojo_shell_connection_impl.h" | 129 #include "content/common/mojo/mojo_shell_connection_impl.h" |
129 #include "content/common/render_process_messages.h" | 130 #include "content/common/render_process_messages.h" |
130 #include "content/common/resource_messages.h" | 131 #include "content/common/resource_messages.h" |
131 #include "content/common/site_isolation_policy.h" | 132 #include "content/common/site_isolation_policy.h" |
132 #include "content/common/view_messages.h" | 133 #include "content/common/view_messages.h" |
133 #include "content/public/browser/browser_context.h" | 134 #include "content/public/browser/browser_context.h" |
134 #include "content/public/browser/content_browser_client.h" | 135 #include "content/public/browser/content_browser_client.h" |
135 #include "content/public/browser/navigator_connect_context.h" | 136 #include "content/public/browser/navigator_connect_context.h" |
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 } | 1066 } |
1066 } | 1067 } |
1067 | 1068 |
1068 void RenderProcessHostImpl::RegisterMojoServices() { | 1069 void RenderProcessHostImpl::RegisterMojoServices() { |
1069 #if !defined(OS_ANDROID) | 1070 #if !defined(OS_ANDROID) |
1070 mojo_application_host_->service_registry()->AddService( | 1071 mojo_application_host_->service_registry()->AddService( |
1071 base::Bind(&device::BatteryMonitorImpl::Create)); | 1072 base::Bind(&device::BatteryMonitorImpl::Create)); |
1072 | 1073 |
1073 mojo_application_host_->service_registry()->AddService( | 1074 mojo_application_host_->service_registry()->AddService( |
1074 base::Bind(&device::VibrationManagerImpl::Create)); | 1075 base::Bind(&device::VibrationManagerImpl::Create)); |
| 1076 |
| 1077 mojo_application_host_->service_registry()->AddService( |
| 1078 base::Bind(&InstalledAppProviderImpl::Create)); |
1075 #endif | 1079 #endif |
1076 | 1080 |
1077 mojo_application_host_->service_registry()->AddService( | 1081 mojo_application_host_->service_registry()->AddService( |
1078 base::Bind(&PermissionServiceContext::CreateService, | 1082 base::Bind(&PermissionServiceContext::CreateService, |
1079 base::Unretained(permission_service_context_.get()))); | 1083 base::Unretained(permission_service_context_.get()))); |
1080 | 1084 |
1081 mojo_application_host_->service_registry()->AddService(base::Bind( | 1085 mojo_application_host_->service_registry()->AddService(base::Bind( |
1082 &BackgroundSyncContextImpl::CreateService, | 1086 &BackgroundSyncContextImpl::CreateService, |
1083 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); | 1087 base::Unretained(storage_partition_impl_->GetBackgroundSyncContext()))); |
1084 | 1088 |
(...skipping 1733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2818 | 2822 |
2819 // Skip widgets in other processes. | 2823 // Skip widgets in other processes. |
2820 if (rvh->GetProcess()->GetID() != GetID()) | 2824 if (rvh->GetProcess()->GetID() != GetID()) |
2821 continue; | 2825 continue; |
2822 | 2826 |
2823 rvh->OnWebkitPreferencesChanged(); | 2827 rvh->OnWebkitPreferencesChanged(); |
2824 } | 2828 } |
2825 } | 2829 } |
2826 | 2830 |
2827 } // namespace content | 2831 } // namespace content |
OLD | NEW |