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

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

Issue 2374863002: Remove usage of HostZoomMap from c/b/loader via ReadyToCommitNavigation (Closed)
Patch Set: init Created 4 years, 1 month 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 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after
1079 1079
1080 // Several filters need the Blob storage context, so fetch it in advance. 1080 // Several filters need the Blob storage context, so fetch it in advance.
1081 scoped_refptr<ChromeBlobStorageContext> blob_storage_context = 1081 scoped_refptr<ChromeBlobStorageContext> blob_storage_context =
1082 ChromeBlobStorageContext::GetFor(browser_context); 1082 ChromeBlobStorageContext::GetFor(browser_context);
1083 1083
1084 resource_message_filter_ = new ResourceMessageFilter( 1084 resource_message_filter_ = new ResourceMessageFilter(
1085 GetID(), PROCESS_TYPE_RENDERER, 1085 GetID(), PROCESS_TYPE_RENDERER,
1086 storage_partition_impl_->GetAppCacheService(), blob_storage_context.get(), 1086 storage_partition_impl_->GetAppCacheService(), blob_storage_context.get(),
1087 storage_partition_impl_->GetFileSystemContext(), 1087 storage_partition_impl_->GetFileSystemContext(),
1088 storage_partition_impl_->GetServiceWorkerContext(), 1088 storage_partition_impl_->GetServiceWorkerContext(),
1089 storage_partition_impl_->GetHostZoomLevelContext(),
1090 get_contexts_callback); 1089 get_contexts_callback);
1091 1090
1092 AddFilter(resource_message_filter_.get()); 1091 AddFilter(resource_message_filter_.get());
1093 1092
1094 media::AudioManager* audio_manager = 1093 media::AudioManager* audio_manager =
1095 BrowserMainLoop::GetInstance()->audio_manager(); 1094 BrowserMainLoop::GetInstance()->audio_manager();
1096 MediaStreamManager* media_stream_manager = 1095 MediaStreamManager* media_stream_manager =
1097 BrowserMainLoop::GetInstance()->media_stream_manager(); 1096 BrowserMainLoop::GetInstance()->media_stream_manager();
1098 // The AudioInputRendererHost and AudioRendererHost needs to be available for 1097 // The AudioInputRendererHost and AudioRendererHost needs to be available for
1099 // lookup, so it's stashed in a member variable. 1098 // lookup, so it's stashed in a member variable.
(...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after
3010 bad_message::ReceivedBadMessage(render_process_id, 3009 bad_message::ReceivedBadMessage(render_process_id,
3011 bad_message::RPH_MOJO_PROCESS_ERROR); 3010 bad_message::RPH_MOJO_PROCESS_ERROR);
3012 } 3011 }
3013 3012
3014 void RenderProcessHostImpl::CreateURLLoaderFactory( 3013 void RenderProcessHostImpl::CreateURLLoaderFactory(
3015 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) { 3014 mojo::InterfaceRequest<mojom::URLLoaderFactory> request) {
3016 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request)); 3015 URLLoaderFactoryImpl::Create(resource_message_filter_, std::move(request));
3017 } 3016 }
3018 3017
3019 } // namespace content 3018 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/url_loader_factory_impl_unittest.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698