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