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