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 577 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
588 scoped_refptr<RenderMessageFilter> render_message_filter( | 588 scoped_refptr<RenderMessageFilter> render_message_filter( |
589 new RenderMessageFilter( | 589 new RenderMessageFilter( |
590 GetID(), | 590 GetID(), |
591 IsGuest(), | 591 IsGuest(), |
592 #if defined(ENABLE_PLUGINS) | 592 #if defined(ENABLE_PLUGINS) |
593 PluginServiceImpl::GetInstance(), | 593 PluginServiceImpl::GetInstance(), |
594 #else | 594 #else |
595 NULL, | 595 NULL, |
596 #endif | 596 #endif |
597 GetBrowserContext(), | 597 GetBrowserContext(), |
598 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), | 598 storage_partition_impl_->GetURLRequestContext(), |
| 599 storage_partition_impl_->GetCookieStoreMap(), |
599 widget_helper_.get(), | 600 widget_helper_.get(), |
600 audio_manager, | 601 audio_manager, |
601 media_internals, | 602 media_internals, |
602 storage_partition_impl_->GetDOMStorageContext())); | 603 storage_partition_impl_->GetDOMStorageContext())); |
603 channel_->AddFilter(render_message_filter.get()); | 604 channel_->AddFilter(render_message_filter.get()); |
604 BrowserContext* browser_context = GetBrowserContext(); | 605 BrowserContext* browser_context = GetBrowserContext(); |
605 ResourceContext* resource_context = browser_context->GetResourceContext(); | 606 ResourceContext* resource_context = browser_context->GetResourceContext(); |
606 | 607 |
607 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( | 608 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( |
608 GetID(), PROCESS_TYPE_RENDERER, resource_context, | 609 GetID(), PROCESS_TYPE_RENDERER, resource_context, |
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 // Skip widgets in other processes. | 1811 // Skip widgets in other processes. |
1811 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1812 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1812 continue; | 1813 continue; |
1813 | 1814 |
1814 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1815 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1815 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1816 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1816 } | 1817 } |
1817 } | 1818 } |
1818 | 1819 |
1819 } // namespace content | 1820 } // namespace content |
OLD | NEW |