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

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

Issue 1964273002: Add FrameHost mojo service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unbind Created 4 years, 7 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
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 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 1889 matching lines...) Expand 10 before | Expand all | Expand 10 after
2765 2763
2766 // Skip widgets in other processes. 2764 // Skip widgets in other processes.
2767 if (rvh->GetProcess()->GetID() != GetID()) 2765 if (rvh->GetProcess()->GetID() != GetID())
2768 continue; 2766 continue;
2769 2767
2770 rvh->OnWebkitPreferencesChanged(); 2768 rvh->OnWebkitPreferencesChanged();
2771 } 2769 }
2772 } 2770 }
2773 2771
2774 } // namespace content 2772 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698