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 393133002: Migrate HostZoomMap to live in StoragePartition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to 291677. Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 ResourceMessageFilter::GetContextsCallback get_contexts_callback( 740 ResourceMessageFilter::GetContextsCallback get_contexts_callback(
741 base::Bind(&GetContexts, browser_context->GetResourceContext(), 741 base::Bind(&GetContexts, browser_context->GetResourceContext(),
742 request_context, media_request_context)); 742 request_context, media_request_context));
743 743
744 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 744 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
745 GetID(), PROCESS_TYPE_RENDERER, 745 GetID(), PROCESS_TYPE_RENDERER,
746 storage_partition_impl_->GetAppCacheService(), 746 storage_partition_impl_->GetAppCacheService(),
747 ChromeBlobStorageContext::GetFor(browser_context), 747 ChromeBlobStorageContext::GetFor(browser_context),
748 storage_partition_impl_->GetFileSystemContext(), 748 storage_partition_impl_->GetFileSystemContext(),
749 storage_partition_impl_->GetServiceWorkerContext(), 749 storage_partition_impl_->GetServiceWorkerContext(),
750 storage_partition_impl_->GetHostZoomLevelContext(),
750 get_contexts_callback); 751 get_contexts_callback);
751 752
752 AddFilter(resource_message_filter); 753 AddFilter(resource_message_filter);
753 MediaStreamManager* media_stream_manager = 754 MediaStreamManager* media_stream_manager =
754 BrowserMainLoop::GetInstance()->media_stream_manager(); 755 BrowserMainLoop::GetInstance()->media_stream_manager();
755 AddFilter(new AudioInputRendererHost( 756 AddFilter(new AudioInputRendererHost(
756 audio_manager, 757 audio_manager,
757 media_stream_manager, 758 media_stream_manager,
758 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), 759 BrowserMainLoop::GetInstance()->audio_mirroring_manager(),
759 BrowserMainLoop::GetInstance()->user_input_monitor())); 760 BrowserMainLoop::GetInstance()->user_input_monitor()));
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
2349 } 2350 }
2350 2351
2351 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer( 2352 void RenderProcessHostImpl::OnDeletedGpuMemoryBuffer(
2352 gfx::GpuMemoryBufferType type, 2353 gfx::GpuMemoryBufferType type,
2353 const gfx::GpuMemoryBufferId& id) { 2354 const gfx::GpuMemoryBufferId& id) {
2354 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2355 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2355 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle()); 2356 GpuMemoryBufferImpl::DeletedByChildProcess(type, id, GetHandle());
2356 } 2357 }
2357 2358
2358 } // namespace content 2359 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698