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

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: Perhaps HostZoomLevelContextDeleter was needed after all ... Created 6 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 | 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 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
710 ResourceMessageFilter::GetContextsCallback get_contexts_callback( 710 ResourceMessageFilter::GetContextsCallback get_contexts_callback(
711 base::Bind(&GetContexts, browser_context->GetResourceContext(), 711 base::Bind(&GetContexts, browser_context->GetResourceContext(),
712 request_context, media_request_context)); 712 request_context, media_request_context));
713 713
714 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 714 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
715 GetID(), PROCESS_TYPE_RENDERER, 715 GetID(), PROCESS_TYPE_RENDERER,
716 storage_partition_impl_->GetAppCacheService(), 716 storage_partition_impl_->GetAppCacheService(),
717 ChromeBlobStorageContext::GetFor(browser_context), 717 ChromeBlobStorageContext::GetFor(browser_context),
718 storage_partition_impl_->GetFileSystemContext(), 718 storage_partition_impl_->GetFileSystemContext(),
719 storage_partition_impl_->GetServiceWorkerContext(), 719 storage_partition_impl_->GetServiceWorkerContext(),
720 storage_partition_impl_->GetHostZoomLevelContext(),
720 get_contexts_callback); 721 get_contexts_callback);
721 722
722 AddFilter(resource_message_filter); 723 AddFilter(resource_message_filter);
723 MediaStreamManager* media_stream_manager = 724 MediaStreamManager* media_stream_manager =
724 BrowserMainLoop::GetInstance()->media_stream_manager(); 725 BrowserMainLoop::GetInstance()->media_stream_manager();
725 AddFilter(new AudioInputRendererHost( 726 AddFilter(new AudioInputRendererHost(
726 audio_manager, 727 audio_manager,
727 media_stream_manager, 728 media_stream_manager,
728 AudioMirroringManager::GetInstance(), 729 AudioMirroringManager::GetInstance(),
729 BrowserMainLoop::GetInstance()->user_input_monitor())); 730 BrowserMainLoop::GetInstance()->user_input_monitor()));
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after
2236 2237
2237 void RenderProcessHostImpl::DecrementWorkerRefCount() { 2238 void RenderProcessHostImpl::DecrementWorkerRefCount() {
2238 DCHECK_CURRENTLY_ON(BrowserThread::UI); 2239 DCHECK_CURRENTLY_ON(BrowserThread::UI);
2239 DCHECK_GT(worker_ref_count_, 0); 2240 DCHECK_GT(worker_ref_count_, 0);
2240 --worker_ref_count_; 2241 --worker_ref_count_;
2241 if (worker_ref_count_ == 0) 2242 if (worker_ref_count_ == 0)
2242 Cleanup(); 2243 Cleanup();
2243 } 2244 }
2244 2245
2245 } // namespace content 2246 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698