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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 scoped_refptr<RenderMessageFilter> render_message_filter( | 547 scoped_refptr<RenderMessageFilter> render_message_filter( |
548 new RenderMessageFilter( | 548 new RenderMessageFilter( |
549 GetID(), | 549 GetID(), |
550 IsGuest(), | 550 IsGuest(), |
551 #if defined(ENABLE_PLUGINS) | 551 #if defined(ENABLE_PLUGINS) |
552 PluginServiceImpl::GetInstance(), | 552 PluginServiceImpl::GetInstance(), |
553 #else | 553 #else |
554 NULL, | 554 NULL, |
555 #endif | 555 #endif |
556 GetBrowserContext(), | 556 GetBrowserContext(), |
557 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), | 557 storage_partition_impl_->GetURLRequestContext(), |
| 558 storage_partition_impl_->GetCookieStoreMap(), |
558 widget_helper_.get(), | 559 widget_helper_.get(), |
559 audio_manager, | 560 audio_manager, |
560 media_internals, | 561 media_internals, |
561 storage_partition_impl_->GetDOMStorageContext())); | 562 storage_partition_impl_->GetDOMStorageContext())); |
562 channel_->AddFilter(render_message_filter.get()); | 563 channel_->AddFilter(render_message_filter.get()); |
563 BrowserContext* browser_context = GetBrowserContext(); | 564 BrowserContext* browser_context = GetBrowserContext(); |
564 ResourceContext* resource_context = browser_context->GetResourceContext(); | 565 ResourceContext* resource_context = browser_context->GetResourceContext(); |
565 | 566 |
566 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( | 567 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( |
567 GetID(), PROCESS_TYPE_RENDERER, resource_context, | 568 GetID(), PROCESS_TYPE_RENDERER, resource_context, |
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1769 // Skip widgets in other processes. | 1770 // Skip widgets in other processes. |
1770 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1771 if (widgets[i]->GetProcess()->GetID() != GetID()) |
1771 continue; | 1772 continue; |
1772 | 1773 |
1773 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1774 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
1774 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1775 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
1775 } | 1776 } |
1776 } | 1777 } |
1777 | 1778 |
1778 } // namespace content | 1779 } // namespace content |
OLD | NEW |