| 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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 AddFilter(peer_connection_tracker_host_.get()); | 780 AddFilter(peer_connection_tracker_host_.get()); |
| 781 AddFilter(new MediaStreamDispatcherHost( | 781 AddFilter(new MediaStreamDispatcherHost( |
| 782 GetID(), | 782 GetID(), |
| 783 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), | 783 browser_context->GetResourceContext()->GetMediaDeviceIDSalt(), |
| 784 media_stream_manager)); | 784 media_stream_manager)); |
| 785 AddFilter(new MediaStreamTrackMetricsHost()); | 785 AddFilter(new MediaStreamTrackMetricsHost()); |
| 786 #endif | 786 #endif |
| 787 #if defined(ENABLE_PLUGINS) | 787 #if defined(ENABLE_PLUGINS) |
| 788 AddFilter(new PepperRendererConnection(GetID())); | 788 AddFilter(new PepperRendererConnection(GetID())); |
| 789 #endif | 789 #endif |
| 790 AddFilter(new SpeechRecognitionDispatcherHost( | 790 AddFilter(new SpeechRecognitionDispatcherHost(GetID())); |
| 791 GetID(), storage_partition_impl_->GetURLRequestContext())); | |
| 792 AddFilter(new FileAPIMessageFilter( | 791 AddFilter(new FileAPIMessageFilter( |
| 793 GetID(), | 792 GetID(), |
| 794 storage_partition_impl_->GetURLRequestContext(), | 793 storage_partition_impl_->GetURLRequestContext(), |
| 795 storage_partition_impl_->GetFileSystemContext(), | 794 storage_partition_impl_->GetFileSystemContext(), |
| 796 ChromeBlobStorageContext::GetFor(browser_context), | 795 ChromeBlobStorageContext::GetFor(browser_context), |
| 797 StreamContext::GetFor(browser_context))); | 796 StreamContext::GetFor(browser_context))); |
| 798 AddFilter(new FileUtilitiesMessageFilter(GetID())); | 797 AddFilter(new FileUtilitiesMessageFilter(GetID())); |
| 799 AddFilter(new MimeRegistryMessageFilter()); | 798 AddFilter(new MimeRegistryMessageFilter()); |
| 800 AddFilter(new DatabaseMessageFilter( | 799 AddFilter(new DatabaseMessageFilter( |
| 801 storage_partition_impl_->GetDatabaseTracker())); | 800 storage_partition_impl_->GetDatabaseTracker())); |
| (...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2359 | 2358 |
| 2360 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2359 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
| 2361 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2360 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
| 2362 DCHECK_GT(worker_ref_count_, 0); | 2361 DCHECK_GT(worker_ref_count_, 0); |
| 2363 --worker_ref_count_; | 2362 --worker_ref_count_; |
| 2364 if (worker_ref_count_ == 0) | 2363 if (worker_ref_count_ == 0) |
| 2365 Cleanup(); | 2364 Cleanup(); |
| 2366 } | 2365 } |
| 2367 | 2366 |
| 2368 } // namespace content | 2367 } // namespace content |
| OLD | NEW |