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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
229 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" | 229 #include "content/browser/renderer_host/media/media_stream_track_metrics_host.h" |
230 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" | 230 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" |
231 #include "content/common/media/aec_dump_messages.h" | 231 #include "content/common/media/aec_dump_messages.h" |
232 #include "content/common/media/media_stream_messages.h" | 232 #include "content/common/media/media_stream_messages.h" |
233 #endif | 233 #endif |
234 | 234 |
235 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) | 235 #if defined(MOJO_SHELL_CLIENT) && defined(USE_AURA) |
236 #include "services/ui/common/switches.h" // nogncheck | 236 #include "services/ui/common/switches.h" // nogncheck |
237 #endif | 237 #endif |
238 | 238 |
| 239 #if defined(USE_MINIKIN_HYPHENATION) |
| 240 #include "content/browser/hyphenation/hyphenation_impl.h" |
| 241 #endif |
| 242 |
239 #if defined(OS_WIN) | 243 #if defined(OS_WIN) |
240 #define IntToStringType base::IntToString16 | 244 #define IntToStringType base::IntToString16 |
241 #else | 245 #else |
242 #define IntToStringType base::IntToString | 246 #define IntToStringType base::IntToString |
243 #endif | 247 #endif |
244 | 248 |
245 namespace content { | 249 namespace content { |
246 namespace { | 250 namespace { |
247 | 251 |
248 const char kSiteProcessMapKeyName[] = "content_site_process_map"; | 252 const char kSiteProcessMapKeyName[] = "content_site_process_map"; |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1069 | 1073 |
1070 GetInterfaceRegistry()->AddInterface( | 1074 GetInterfaceRegistry()->AddInterface( |
1071 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, | 1075 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, |
1072 base::Unretained(this))); | 1076 base::Unretained(this))); |
1073 | 1077 |
1074 GetInterfaceRegistry()->AddInterface( | 1078 GetInterfaceRegistry()->AddInterface( |
1075 base::Bind(&webmessaging::BroadcastChannelProvider::Connect, | 1079 base::Bind(&webmessaging::BroadcastChannelProvider::Connect, |
1076 base::Unretained( | 1080 base::Unretained( |
1077 storage_partition_impl_->GetBroadcastChannelProvider()))); | 1081 storage_partition_impl_->GetBroadcastChannelProvider()))); |
1078 | 1082 |
| 1083 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner = |
| 1084 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE); |
1079 GetInterfaceRegistry()->AddInterface( | 1085 GetInterfaceRegistry()->AddInterface( |
1080 base::Bind(&MimeRegistryImpl::Create), | 1086 base::Bind(&MimeRegistryImpl::Create), file_task_runner); |
1081 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE)); | 1087 |
| 1088 #if defined(USE_MINIKIN_HYPHENATION) |
| 1089 GetInterfaceRegistry()->AddInterface( |
| 1090 base::Bind(&hyphenation::HyphenationImpl::Create), file_task_runner); |
| 1091 #endif |
1082 | 1092 |
1083 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = | 1093 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner = |
1084 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); | 1094 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO); |
1085 GetInterfaceRegistry()->AddInterface(base::Bind(&DeviceLightHost::Create), | 1095 GetInterfaceRegistry()->AddInterface(base::Bind(&DeviceLightHost::Create), |
1086 io_task_runner); | 1096 io_task_runner); |
1087 GetInterfaceRegistry()->AddInterface(base::Bind(&DeviceMotionHost::Create), | 1097 GetInterfaceRegistry()->AddInterface(base::Bind(&DeviceMotionHost::Create), |
1088 io_task_runner); | 1098 io_task_runner); |
1089 GetInterfaceRegistry()->AddInterface( | 1099 GetInterfaceRegistry()->AddInterface( |
1090 base::Bind(&DeviceOrientationHost::Create), io_task_runner); | 1100 base::Bind(&DeviceOrientationHost::Create), io_task_runner); |
1091 GetInterfaceRegistry()->AddInterface( | 1101 GetInterfaceRegistry()->AddInterface( |
(...skipping 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2760 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2770 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
2761 | 2771 |
2762 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2772 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
2763 // enough information here so that we can determine what the bad message was. | 2773 // enough information here so that we can determine what the bad message was. |
2764 base::debug::Alias(&error); | 2774 base::debug::Alias(&error); |
2765 bad_message::ReceivedBadMessage(process.get(), | 2775 bad_message::ReceivedBadMessage(process.get(), |
2766 bad_message::RPH_MOJO_PROCESS_ERROR); | 2776 bad_message::RPH_MOJO_PROCESS_ERROR); |
2767 } | 2777 } |
2768 | 2778 |
2769 } // namespace content | 2779 } // namespace content |
OLD | NEW |