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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 ResourceMessageFilter::GetContextsCallback get_contexts_callback( | 851 ResourceMessageFilter::GetContextsCallback get_contexts_callback( |
852 base::Bind(&GetContexts, browser_context->GetResourceContext(), | 852 base::Bind(&GetContexts, browser_context->GetResourceContext(), |
853 request_context, media_request_context)); | 853 request_context, media_request_context)); |
854 | 854 |
855 // Several filters need the Blob storage context, so fetch it in advance. | 855 // Several filters need the Blob storage context, so fetch it in advance. |
856 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = | 856 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = |
857 ChromeBlobStorageContext::GetFor(browser_context); | 857 ChromeBlobStorageContext::GetFor(browser_context); |
858 | 858 |
859 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( | 859 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( |
860 GetID(), PROCESS_TYPE_RENDERER, | 860 GetID(), PROCESS_TYPE_RENDERER, |
861 storage_partition_impl_->GetAppCacheService(), | 861 storage_partition_impl_->GetAppCacheService(), blob_storage_context.get(), |
862 blob_storage_context.get(), | |
863 storage_partition_impl_->GetFileSystemContext(), | 862 storage_partition_impl_->GetFileSystemContext(), |
864 storage_partition_impl_->GetServiceWorkerContext(), | 863 storage_partition_impl_->GetServiceWorkerContext(), |
865 storage_partition_impl_->GetHostZoomLevelContext(), | |
866 get_contexts_callback); | 864 get_contexts_callback); |
867 | 865 |
868 AddFilter(resource_message_filter); | 866 AddFilter(resource_message_filter); |
869 MediaStreamManager* media_stream_manager = | 867 MediaStreamManager* media_stream_manager = |
870 BrowserMainLoop::GetInstance()->media_stream_manager(); | 868 BrowserMainLoop::GetInstance()->media_stream_manager(); |
871 // The AudioInputRendererHost and AudioRendererHost needs to be available for | 869 // The AudioInputRendererHost and AudioRendererHost needs to be available for |
872 // lookup, so it's stashed in a member variable. | 870 // lookup, so it's stashed in a member variable. |
873 audio_input_renderer_host_ = new AudioInputRendererHost( | 871 audio_input_renderer_host_ = new AudioInputRendererHost( |
874 GetID(), base::GetProcId(GetHandle()), audio_manager, | 872 GetID(), base::GetProcId(GetHandle()), audio_manager, |
875 media_stream_manager, AudioMirroringManager::GetInstance(), | 873 media_stream_manager, AudioMirroringManager::GetInstance(), |
(...skipping 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2768 | 2766 |
2769 // Skip widgets in other processes. | 2767 // Skip widgets in other processes. |
2770 if (rvh->GetProcess()->GetID() != GetID()) | 2768 if (rvh->GetProcess()->GetID() != GetID()) |
2771 continue; | 2769 continue; |
2772 | 2770 |
2773 rvh->OnWebkitPreferencesChanged(); | 2771 rvh->OnWebkitPreferencesChanged(); |
2774 } | 2772 } |
2775 } | 2773 } |
2776 | 2774 |
2777 } // namespace content | 2775 } // namespace content |
OLD | NEW |