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 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
673 storage_partition_impl_->GetMediaURLRequestContext(), | 673 storage_partition_impl_->GetMediaURLRequestContext(), |
674 storage_partition_impl_->GetAppCacheService(), | 674 storage_partition_impl_->GetAppCacheService(), |
675 storage_partition_impl_->GetQuotaManager(), | 675 storage_partition_impl_->GetQuotaManager(), |
676 storage_partition_impl_->GetFileSystemContext(), | 676 storage_partition_impl_->GetFileSystemContext(), |
677 storage_partition_impl_->GetDatabaseTracker(), | 677 storage_partition_impl_->GetDatabaseTracker(), |
678 storage_partition_impl_->GetIndexedDBContext()), | 678 storage_partition_impl_->GetIndexedDBContext()), |
679 base::Bind(&RenderWidgetHelper::GetNextRoutingID, | 679 base::Bind(&RenderWidgetHelper::GetNextRoutingID, |
680 base::Unretained(widget_helper_.get())))); | 680 base::Unretained(widget_helper_.get())))); |
681 | 681 |
682 #if defined(ENABLE_WEBRTC) | 682 #if defined(ENABLE_WEBRTC) |
683 channel_->AddFilter(new P2PSocketDispatcherHost(resource_context)); | 683 channel_->AddFilter(new P2PSocketDispatcherHost( |
| 684 resource_context, |
| 685 browser_context->GetRequestContextForRenderProcess(GetID()))); |
684 #endif | 686 #endif |
685 | 687 |
686 channel_->AddFilter(new TraceMessageFilter()); | 688 channel_->AddFilter(new TraceMessageFilter()); |
687 channel_->AddFilter(new ResolveProxyMsgHelper( | 689 channel_->AddFilter(new ResolveProxyMsgHelper( |
688 browser_context->GetRequestContextForRenderProcess(GetID()))); | 690 browser_context->GetRequestContextForRenderProcess(GetID()))); |
689 channel_->AddFilter(new QuotaDispatcherHost( | 691 channel_->AddFilter(new QuotaDispatcherHost( |
690 GetID(), | 692 GetID(), |
691 storage_partition_impl_->GetQuotaManager(), | 693 storage_partition_impl_->GetQuotaManager(), |
692 GetContentClient()->browser()->CreateQuotaPermissionContext())); | 694 GetContentClient()->browser()->CreateQuotaPermissionContext())); |
693 channel_->AddFilter(new GamepadBrowserMessageFilter()); | 695 channel_->AddFilter(new GamepadBrowserMessageFilter()); |
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1777 continue; | 1779 continue; |
1778 | 1780 |
1779 RenderViewHost* rvh = | 1781 RenderViewHost* rvh = |
1780 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); | 1782 RenderViewHost::From(const_cast<RenderWidgetHost*>(widget)); |
1781 | 1783 |
1782 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1784 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1783 } | 1785 } |
1784 } | 1786 } |
1785 | 1787 |
1786 } // namespace content | 1788 } // namespace content |
OLD | NEW |