Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 2020633003: Revert of Add FrameHost mojo service (patchset #23 id:490001 of https://codereview.chromium.org/196… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/browser/loader/resource_message_filter.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 ResourceMessageFilter::GetContextsCallback get_contexts_callback( 850 ResourceMessageFilter::GetContextsCallback get_contexts_callback(
851 base::Bind(&GetContexts, browser_context->GetResourceContext(), 851 base::Bind(&GetContexts, browser_context->GetResourceContext(),
852 request_context, media_request_context)); 852 request_context, media_request_context));
853 853
854 // Several filters need the Blob storage context, so fetch it in advance. 854 // Several filters need the Blob storage context, so fetch it in advance.
855 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = 855 scoped_refptr<ChromeBlobStorageContext> blob_storage_context =
856 ChromeBlobStorageContext::GetFor(browser_context); 856 ChromeBlobStorageContext::GetFor(browser_context);
857 857
858 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 858 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
859 GetID(), PROCESS_TYPE_RENDERER, 859 GetID(), PROCESS_TYPE_RENDERER,
860 storage_partition_impl_->GetAppCacheService(), blob_storage_context.get(), 860 storage_partition_impl_->GetAppCacheService(),
861 blob_storage_context.get(),
861 storage_partition_impl_->GetFileSystemContext(), 862 storage_partition_impl_->GetFileSystemContext(),
862 storage_partition_impl_->GetServiceWorkerContext(), 863 storage_partition_impl_->GetServiceWorkerContext(),
864 storage_partition_impl_->GetHostZoomLevelContext(),
863 get_contexts_callback); 865 get_contexts_callback);
864 866
865 AddFilter(resource_message_filter); 867 AddFilter(resource_message_filter);
866 MediaStreamManager* media_stream_manager = 868 MediaStreamManager* media_stream_manager =
867 BrowserMainLoop::GetInstance()->media_stream_manager(); 869 BrowserMainLoop::GetInstance()->media_stream_manager();
868 // The AudioInputRendererHost and AudioRendererHost needs to be available for 870 // The AudioInputRendererHost and AudioRendererHost needs to be available for
869 // lookup, so it's stashed in a member variable. 871 // lookup, so it's stashed in a member variable.
870 audio_input_renderer_host_ = new AudioInputRendererHost( 872 audio_input_renderer_host_ = new AudioInputRendererHost(
871 GetID(), base::GetProcId(GetHandle()), audio_manager, 873 GetID(), base::GetProcId(GetHandle()), audio_manager,
872 media_stream_manager, AudioMirroringManager::GetInstance(), 874 media_stream_manager, AudioMirroringManager::GetInstance(),
(...skipping 1888 matching lines...) Expand 10 before | Expand all | Expand 10 after
2761 2763
2762 // Skip widgets in other processes. 2764 // Skip widgets in other processes.
2763 if (rvh->GetProcess()->GetID() != GetID()) 2765 if (rvh->GetProcess()->GetID() != GetID())
2764 continue; 2766 continue;
2765 2767
2766 rvh->OnWebkitPreferencesChanged(); 2768 rvh->OnWebkitPreferencesChanged();
2767 } 2769 }
2768 } 2770 }
2769 2771
2770 } // namespace content 2772 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_message_filter.cc ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698