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