| 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 30 matching lines...) Expand all Loading... |
| 41 #include "base/threading/thread_restrictions.h" | 41 #include "base/threading/thread_restrictions.h" |
| 42 #include "base/threading/thread_task_runner_handle.h" | 42 #include "base/threading/thread_task_runner_handle.h" |
| 43 #include "base/trace_event/trace_event.h" | 43 #include "base/trace_event/trace_event.h" |
| 44 #include "base/tracked_objects.h" | 44 #include "base/tracked_objects.h" |
| 45 #include "build/build_config.h" | 45 #include "build/build_config.h" |
| 46 #include "cc/base/switches.h" | 46 #include "cc/base/switches.h" |
| 47 #include "components/memory_coordinator/browser/memory_coordinator.h" | 47 #include "components/memory_coordinator/browser/memory_coordinator.h" |
| 48 #include "components/memory_coordinator/common/memory_coordinator_features.h" | 48 #include "components/memory_coordinator/common/memory_coordinator_features.h" |
| 49 #include "components/scheduler/common/scheduler_switches.h" | 49 #include "components/scheduler/common/scheduler_switches.h" |
| 50 #include "components/tracing/common/tracing_switches.h" | 50 #include "components/tracing/common/tracing_switches.h" |
| 51 #include "components/webmessaging/broadcast_channel_provider.h" | |
| 52 #include "content/browser/appcache/appcache_dispatcher_host.h" | 51 #include "content/browser/appcache/appcache_dispatcher_host.h" |
| 53 #include "content/browser/appcache/chrome_appcache_service.h" | 52 #include "content/browser/appcache/chrome_appcache_service.h" |
| 54 #include "content/browser/background_sync/background_sync_service_impl.h" | 53 #include "content/browser/background_sync/background_sync_service_impl.h" |
| 55 #include "content/browser/bad_message.h" | 54 #include "content/browser/bad_message.h" |
| 56 #include "content/browser/blob_storage/blob_dispatcher_host.h" | 55 #include "content/browser/blob_storage/blob_dispatcher_host.h" |
| 57 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 56 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
| 57 #include "content/browser/broadcast_channel/broadcast_channel_provider.h" |
| 58 #include "content/browser/browser_child_process_host_impl.h" | 58 #include "content/browser/browser_child_process_host_impl.h" |
| 59 #include "content/browser/browser_main.h" | 59 #include "content/browser/browser_main.h" |
| 60 #include "content/browser/browser_main_loop.h" | 60 #include "content/browser/browser_main_loop.h" |
| 61 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" | 61 #include "content/browser/browser_plugin/browser_plugin_message_filter.h" |
| 62 #include "content/browser/cache_storage/cache_storage_context_impl.h" | 62 #include "content/browser/cache_storage/cache_storage_context_impl.h" |
| 63 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" | 63 #include "content/browser/cache_storage/cache_storage_dispatcher_host.h" |
| 64 #include "content/browser/child_process_security_policy_impl.h" | 64 #include "content/browser/child_process_security_policy_impl.h" |
| 65 #include "content/browser/device_sensors/device_sensor_host.h" | 65 #include "content/browser/device_sensors/device_sensor_host.h" |
| 66 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" | 66 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" |
| 67 #include "content/browser/dom_storage/dom_storage_message_filter.h" | 67 #include "content/browser/dom_storage/dom_storage_message_filter.h" |
| (...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1081 GetInterfaceRegistry()->AddInterface(base::Bind( | 1081 GetInterfaceRegistry()->AddInterface(base::Bind( |
| 1082 &PlatformNotificationContextImpl::CreateService, | 1082 &PlatformNotificationContextImpl::CreateService, |
| 1083 base::Unretained( | 1083 base::Unretained( |
| 1084 storage_partition_impl_->GetPlatformNotificationContext()), GetID())); | 1084 storage_partition_impl_->GetPlatformNotificationContext()), GetID())); |
| 1085 | 1085 |
| 1086 GetInterfaceRegistry()->AddInterface( | 1086 GetInterfaceRegistry()->AddInterface( |
| 1087 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, | 1087 base::Bind(&RenderProcessHostImpl::CreateStoragePartitionService, |
| 1088 base::Unretained(this))); | 1088 base::Unretained(this))); |
| 1089 | 1089 |
| 1090 GetInterfaceRegistry()->AddInterface( | 1090 GetInterfaceRegistry()->AddInterface( |
| 1091 base::Bind(&webmessaging::BroadcastChannelProvider::Connect, | 1091 base::Bind(&BroadcastChannelProvider::Connect, |
| 1092 base::Unretained( | 1092 base::Unretained( |
| 1093 storage_partition_impl_->GetBroadcastChannelProvider()))); | 1093 storage_partition_impl_->GetBroadcastChannelProvider()))); |
| 1094 | 1094 |
| 1095 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner = | 1095 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner = |
| 1096 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE); | 1096 BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE); |
| 1097 GetInterfaceRegistry()->AddInterface( | 1097 GetInterfaceRegistry()->AddInterface( |
| 1098 base::Bind(&MimeRegistryImpl::Create), file_task_runner); | 1098 base::Bind(&MimeRegistryImpl::Create), file_task_runner); |
| 1099 | 1099 |
| 1100 #if defined(USE_MINIKIN_HYPHENATION) | 1100 #if defined(USE_MINIKIN_HYPHENATION) |
| 1101 GetInterfaceRegistry()->AddInterface( | 1101 GetInterfaceRegistry()->AddInterface( |
| (...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2801 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2801 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2802 | 2802 |
| 2803 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 2803 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 2804 // enough information here so that we can determine what the bad message was. | 2804 // enough information here so that we can determine what the bad message was. |
| 2805 base::debug::Alias(&error); | 2805 base::debug::Alias(&error); |
| 2806 bad_message::ReceivedBadMessage(process.get(), | 2806 bad_message::ReceivedBadMessage(process.get(), |
| 2807 bad_message::RPH_MOJO_PROCESS_ERROR); | 2807 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 2808 } | 2808 } |
| 2809 | 2809 |
| 2810 } // namespace content | 2810 } // namespace content |
| OLD | NEW |