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 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 media_stream_manager); | 748 media_stream_manager); |
749 AddFilter(audio_renderer_host_.get()); | 749 AddFilter(audio_renderer_host_.get()); |
750 AddFilter( | 750 AddFilter( |
751 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); | 751 new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_manager())); |
752 AddFilter(new VideoCaptureHost(media_stream_manager)); | 752 AddFilter(new VideoCaptureHost(media_stream_manager)); |
753 AddFilter(new AppCacheDispatcherHost( | 753 AddFilter(new AppCacheDispatcherHost( |
754 storage_partition_impl_->GetAppCacheService(), | 754 storage_partition_impl_->GetAppCacheService(), |
755 GetID())); | 755 GetID())); |
756 AddFilter(new ClipboardMessageFilter); | 756 AddFilter(new ClipboardMessageFilter); |
757 AddFilter(new DOMStorageMessageFilter( | 757 AddFilter(new DOMStorageMessageFilter( |
758 GetID(), | |
759 storage_partition_impl_->GetDOMStorageContext())); | 758 storage_partition_impl_->GetDOMStorageContext())); |
760 AddFilter(new IndexedDBDispatcherHost( | 759 AddFilter(new IndexedDBDispatcherHost( |
761 GetID(), | 760 GetID(), |
762 storage_partition_impl_->GetURLRequestContext(), | 761 storage_partition_impl_->GetURLRequestContext(), |
763 storage_partition_impl_->GetIndexedDBContext(), | 762 storage_partition_impl_->GetIndexedDBContext(), |
764 ChromeBlobStorageContext::GetFor(browser_context))); | 763 ChromeBlobStorageContext::GetFor(browser_context))); |
765 | 764 |
766 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); | 765 gpu_message_filter_ = new GpuMessageFilter(GetID(), widget_helper_.get()); |
767 AddFilter(gpu_message_filter_); | 766 AddFilter(gpu_message_filter_); |
768 #if defined(ENABLE_WEBRTC) | 767 #if defined(ENABLE_WEBRTC) |
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2313 | 2312 |
2314 void RenderProcessHostImpl::DecrementWorkerRefCount() { | 2313 void RenderProcessHostImpl::DecrementWorkerRefCount() { |
2315 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 2314 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
2316 DCHECK_GT(worker_ref_count_, 0); | 2315 DCHECK_GT(worker_ref_count_, 0); |
2317 --worker_ref_count_; | 2316 --worker_ref_count_; |
2318 if (worker_ref_count_ == 0) | 2317 if (worker_ref_count_ == 0) |
2319 Cleanup(); | 2318 Cleanup(); |
2320 } | 2319 } |
2321 | 2320 |
2322 } // namespace content | 2321 } // namespace content |
OLD | NEW |