| 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 storage_partition_impl_->GetMediaURLRequestContext(), | 690 storage_partition_impl_->GetMediaURLRequestContext(), |
| 691 storage_partition_impl_->GetAppCacheService(), | 691 storage_partition_impl_->GetAppCacheService(), |
| 692 storage_partition_impl_->GetQuotaManager(), | 692 storage_partition_impl_->GetQuotaManager(), |
| 693 storage_partition_impl_->GetFileSystemContext(), | 693 storage_partition_impl_->GetFileSystemContext(), |
| 694 storage_partition_impl_->GetDatabaseTracker(), | 694 storage_partition_impl_->GetDatabaseTracker(), |
| 695 storage_partition_impl_->GetIndexedDBContext()), | 695 storage_partition_impl_->GetIndexedDBContext()), |
| 696 base::Bind(&RenderWidgetHelper::GetNextRoutingID, | 696 base::Bind(&RenderWidgetHelper::GetNextRoutingID, |
| 697 base::Unretained(widget_helper_.get())))); | 697 base::Unretained(widget_helper_.get())))); |
| 698 | 698 |
| 699 #if defined(ENABLE_WEBRTC) | 699 #if defined(ENABLE_WEBRTC) |
| 700 channel_->AddFilter(new P2PSocketDispatcherHost(resource_context)); | 700 channel_->AddFilter(new P2PSocketDispatcherHost( |
| 701 resource_context, |
| 702 browser_context->GetRequestContextForRenderProcess(GetID()))); |
| 701 #endif | 703 #endif |
| 702 | 704 |
| 703 channel_->AddFilter(new TraceMessageFilter()); | 705 channel_->AddFilter(new TraceMessageFilter()); |
| 704 channel_->AddFilter(new ResolveProxyMsgHelper( | 706 channel_->AddFilter(new ResolveProxyMsgHelper( |
| 705 browser_context->GetRequestContextForRenderProcess(GetID()))); | 707 browser_context->GetRequestContextForRenderProcess(GetID()))); |
| 706 channel_->AddFilter(new QuotaDispatcherHost( | 708 channel_->AddFilter(new QuotaDispatcherHost( |
| 707 GetID(), | 709 GetID(), |
| 708 storage_partition_impl_->GetQuotaManager(), | 710 storage_partition_impl_->GetQuotaManager(), |
| 709 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 711 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
| 710 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 712 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
| (...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1794 continue; | 1796 continue; |
| 1795 | 1797 |
| 1796 RenderViewHost* rvh = | 1798 RenderViewHost* rvh = |
| 1797 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); | 1799 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); |
| 1798 | 1800 |
| 1799 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1801 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1800 } | 1802 } |
| 1801 } | 1803 } |
| 1802 | 1804 |
| 1803 } // namespace content | 1805 } // namespace content |
| OLD | NEW |