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

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

Issue 2211713002: Remove dependency of c/b/loader on c/b/host_zoom_map_impl.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 // Several filters need the Blob storage context, so fetch it in advance. 957 // Several filters need the Blob storage context, so fetch it in advance.
958 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = 958 scoped_refptr<ChromeBlobStorageContext> blob_storage_context =
959 ChromeBlobStorageContext::GetFor(browser_context); 959 ChromeBlobStorageContext::GetFor(browser_context);
960 960
961 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 961 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
962 GetID(), PROCESS_TYPE_RENDERER, 962 GetID(), PROCESS_TYPE_RENDERER,
963 storage_partition_impl_->GetAppCacheService(), 963 storage_partition_impl_->GetAppCacheService(),
964 blob_storage_context.get(), 964 blob_storage_context.get(),
965 storage_partition_impl_->GetFileSystemContext(), 965 storage_partition_impl_->GetFileSystemContext(),
966 storage_partition_impl_->GetServiceWorkerContext(), 966 storage_partition_impl_->GetServiceWorkerContext(),
967 storage_partition_impl_->GetHostZoomLevelContext(),
968 get_contexts_callback); 967 get_contexts_callback);
969 968
970 AddFilter(resource_message_filter); 969 AddFilter(resource_message_filter);
971 MediaStreamManager* media_stream_manager = 970 MediaStreamManager* media_stream_manager =
972 BrowserMainLoop::GetInstance()->media_stream_manager(); 971 BrowserMainLoop::GetInstance()->media_stream_manager();
973 // The AudioInputRendererHost and AudioRendererHost needs to be available for 972 // The AudioInputRendererHost and AudioRendererHost needs to be available for
974 // lookup, so it's stashed in a member variable. 973 // lookup, so it's stashed in a member variable.
975 audio_input_renderer_host_ = new AudioInputRendererHost( 974 audio_input_renderer_host_ = new AudioInputRendererHost(
976 GetID(), base::GetProcId(GetHandle()), audio_manager, 975 GetID(), base::GetProcId(GetHandle()), audio_manager,
977 media_stream_manager, AudioMirroringManager::GetInstance(), 976 media_stream_manager, AudioMirroringManager::GetInstance(),
(...skipping 1850 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error; 2827 LOG(ERROR) << "Terminating render process for bad Mojo message: " << error;
2829 2828
2830 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias 2829 // The ReceivedBadMessage call below will trigger a DumpWithoutCrashing. Alias
2831 // enough information here so that we can determine what the bad message was. 2830 // enough information here so that we can determine what the bad message was.
2832 base::debug::Alias(&error); 2831 base::debug::Alias(&error);
2833 bad_message::ReceivedBadMessage(process.get(), 2832 bad_message::ReceivedBadMessage(process.get(),
2834 bad_message::RPH_MOJO_PROCESS_ERROR); 2833 bad_message::RPH_MOJO_PROCESS_ERROR);
2835 } 2834 }
2836 2835
2837 } // namespace content 2836 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_message_filter.cc ('k') | content/common/render_frame_message_filter.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698