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 1060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1071 | 1071 |
1072 // Several filters need the Blob storage context, so fetch it in advance. | 1072 // Several filters need the Blob storage context, so fetch it in advance. |
1073 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = | 1073 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = |
1074 ChromeBlobStorageContext::GetFor(browser_context); | 1074 ChromeBlobStorageContext::GetFor(browser_context); |
1075 | 1075 |
1076 resource_message_filter_ = new ResourceMessageFilter( | 1076 resource_message_filter_ = new ResourceMessageFilter( |
1077 GetID(), PROCESS_TYPE_RENDERER, | 1077 GetID(), PROCESS_TYPE_RENDERER, |
1078 storage_partition_impl_->GetAppCacheService(), blob_storage_context.get(), | 1078 storage_partition_impl_->GetAppCacheService(), blob_storage_context.get(), |
1079 storage_partition_impl_->GetFileSystemContext(), | 1079 storage_partition_impl_->GetFileSystemContext(), |
1080 storage_partition_impl_->GetServiceWorkerContext(), | 1080 storage_partition_impl_->GetServiceWorkerContext(), |
1081 storage_partition_impl_->GetHostZoomLevelContext(), | |
1082 get_contexts_callback); | 1081 get_contexts_callback); |
1083 | 1082 |
1084 AddFilter(resource_message_filter_.get()); | 1083 AddFilter(resource_message_filter_.get()); |
1085 | 1084 |
1086 media::AudioManager* audio_manager = | 1085 media::AudioManager* audio_manager = |
1087 BrowserMainLoop::GetInstance()->audio_manager(); | 1086 BrowserMainLoop::GetInstance()->audio_manager(); |
1088 MediaStreamManager* media_stream_manager = | 1087 MediaStreamManager* media_stream_manager = |
1089 BrowserMainLoop::GetInstance()->media_stream_manager(); | 1088 BrowserMainLoop::GetInstance()->media_stream_manager(); |
1090 // The AudioInputRendererHost and AudioRendererHost needs to be available for | 1089 // The AudioInputRendererHost and AudioRendererHost needs to be available for |
1091 // lookup, so it's stashed in a member variable. | 1090 // lookup, so it's stashed in a member variable. |
(...skipping 1948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3040 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 3039 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
3041 | 3040 |
3042 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 3041 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
3043 // enough information here so that we can determine what the bad message was. | 3042 // enough information here so that we can determine what the bad message was. |
3044 base::debug::Alias(&error); | 3043 base::debug::Alias(&error); |
3045 bad_message::ReceivedBadMessage(process.get(), | 3044 bad_message::ReceivedBadMessage(process.get(), |
3046 bad_message::RPH_MOJO_PROCESS_ERROR); | 3045 bad_message::RPH_MOJO_PROCESS_ERROR); |
3047 } | 3046 } |
3048 | 3047 |
3049 } // namespace content | 3048 } // namespace content |
OLD | NEW |