OLD | NEW |
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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 ResourceMessageFilter::GetContextsCallback get_contexts_callback( | 714 ResourceMessageFilter::GetContextsCallback get_contexts_callback( |
715 base::Bind(&GetContexts, browser_context->GetResourceContext(), | 715 base::Bind(&GetContexts, browser_context->GetResourceContext(), |
716 request_context, media_request_context)); | 716 request_context, media_request_context)); |
717 | 717 |
718 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( | 718 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( |
719 GetID(), PROCESS_TYPE_RENDERER, | 719 GetID(), PROCESS_TYPE_RENDERER, |
720 storage_partition_impl_->GetAppCacheService(), | 720 storage_partition_impl_->GetAppCacheService(), |
721 ChromeBlobStorageContext::GetFor(browser_context), | 721 ChromeBlobStorageContext::GetFor(browser_context), |
722 storage_partition_impl_->GetFileSystemContext(), | 722 storage_partition_impl_->GetFileSystemContext(), |
723 storage_partition_impl_->GetServiceWorkerContext(), | 723 storage_partition_impl_->GetServiceWorkerContext(), |
| 724 storage_partition_impl_->GetHostZoomLevelContext(), |
724 get_contexts_callback); | 725 get_contexts_callback); |
725 | 726 |
726 AddFilter(resource_message_filter); | 727 AddFilter(resource_message_filter); |
727 MediaStreamManager* media_stream_manager = | 728 MediaStreamManager* media_stream_manager = |
728 BrowserMainLoop::GetInstance()->media_stream_manager(); | 729 BrowserMainLoop::GetInstance()->media_stream_manager(); |
729 AddFilter(new AudioInputRendererHost( | 730 AddFilter(new AudioInputRendererHost( |
730 audio_manager, | 731 audio_manager, |
731 media_stream_manager, | 732 media_stream_manager, |
732 AudioMirroringManager::GetInstance(), | 733 AudioMirroringManager::GetInstance(), |
733 BrowserMainLoop::GetInstance()->user_input_monitor())); | 734 BrowserMainLoop::GetInstance()->user_input_monitor())); |
(...skipping 1506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2240 | 2241 |
2241 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2242 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2242 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2243 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2243 DCHECK_GT(worker_ref_count_, 0); | 2244 DCHECK_GT(worker_ref_count_, 0); |
2244 --worker_ref_count_; | 2245 --worker_ref_count_; |
2245 if (worker_ref_count_ == 0) | 2246 if (worker_ref_count_ == 0) |
2246 Cleanup(); | 2247 Cleanup(); |
2247 } | 2248 } |
2248 | 2249 |
2249 } // namespace content | 2250 } // namespace content |
OLD | NEW |