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