| 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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1040 | 1040 |
| 1041 ResourceMessageFilter::GetContextsCallback get_contexts_callback( | 1041 ResourceMessageFilter::GetContextsCallback get_contexts_callback( |
| 1042 base::Bind(&GetContexts, browser_context->GetResourceContext(), | 1042 base::Bind(&GetContexts, browser_context->GetResourceContext(), |
| 1043 request_context, media_request_context)); | 1043 request_context, media_request_context)); |
| 1044 | 1044 |
| 1045 // Several filters need the Blob storage context, so fetch it in advance. | 1045 // Several filters need the Blob storage context, so fetch it in advance. |
| 1046 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = | 1046 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = |
| 1047 ChromeBlobStorageContext::GetFor(browser_context); | 1047 ChromeBlobStorageContext::GetFor(browser_context); |
| 1048 | 1048 |
| 1049 resource_message_filter_ = new ResourceMessageFilter( | 1049 resource_message_filter_ = new ResourceMessageFilter( |
| 1050 GetID(), PROCESS_TYPE_RENDERER, | 1050 GetID(), storage_partition_impl_->GetAppCacheService(), |
| 1051 storage_partition_impl_->GetAppCacheService(), blob_storage_context.get(), | 1051 blob_storage_context.get(), |
| 1052 storage_partition_impl_->GetFileSystemContext(), | 1052 storage_partition_impl_->GetFileSystemContext(), |
| 1053 storage_partition_impl_->GetServiceWorkerContext(), | 1053 storage_partition_impl_->GetServiceWorkerContext(), |
| 1054 get_contexts_callback); | 1054 get_contexts_callback); |
| 1055 | 1055 |
| 1056 AddFilter(resource_message_filter_.get()); | 1056 AddFilter(resource_message_filter_.get()); |
| 1057 | 1057 |
| 1058 media::AudioManager* audio_manager = | 1058 media::AudioManager* audio_manager = |
| 1059 BrowserMainLoop::GetInstance()->audio_manager(); | 1059 BrowserMainLoop::GetInstance()->audio_manager(); |
| 1060 MediaStreamManager* media_stream_manager = | 1060 MediaStreamManager* media_stream_manager = |
| 1061 BrowserMainLoop::GetInstance()->media_stream_manager(); | 1061 BrowserMainLoop::GetInstance()->media_stream_manager(); |
| (...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2998 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; | 2998 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; |
| 2999 | 2999 |
| 3000 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias | 3000 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias |
| 3001 // enough information here so that we can determine what the bad message was. | 3001 // enough information here so that we can determine what the bad message was. |
| 3002 base::debug::Alias(&error); | 3002 base::debug::Alias(&error); |
| 3003 bad_message::ReceivedBadMessage(render_process_id, | 3003 bad_message::ReceivedBadMessage(render_process_id, |
| 3004 bad_message::RPH_MOJO_PROCESS_ERROR); | 3004 bad_message::RPH_MOJO_PROCESS_ERROR); |
| 3005 } | 3005 } |
| 3006 | 3006 |
| 3007 } // namespace content | 3007 } // namespace content |
| OLD | NEW |