Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(669)

Side by Side Diff: content/browser/renderer_host/render_process_host_impl.cc

Issue 12546016: Remove the Extensions URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: most unittests pass Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 scoped_refptr<RenderMessageFilter> render_message_filter( 586 scoped_refptr<RenderMessageFilter> render_message_filter(
587 new RenderMessageFilter( 587 new RenderMessageFilter(
588 GetID(), 588 GetID(),
589 IsGuest(), 589 IsGuest(),
590 #if defined(ENABLE_PLUGINS) 590 #if defined(ENABLE_PLUGINS)
591 PluginServiceImpl::GetInstance(), 591 PluginServiceImpl::GetInstance(),
592 #else 592 #else
593 NULL, 593 NULL,
594 #endif 594 #endif
595 GetBrowserContext(), 595 GetBrowserContext(),
596 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), 596 storage_partition_impl_->GetURLRequestContext(),
597 storage_partition_impl_->GetCookieStoreMap(),
597 widget_helper_.get(), 598 widget_helper_.get(),
598 audio_manager, 599 audio_manager,
599 media_internals, 600 media_internals,
600 storage_partition_impl_->GetDOMStorageContext())); 601 storage_partition_impl_->GetDOMStorageContext()));
601 channel_->AddFilter(render_message_filter.get()); 602 channel_->AddFilter(render_message_filter.get());
602 BrowserContext* browser_context = GetBrowserContext(); 603 BrowserContext* browser_context = GetBrowserContext();
603 ResourceContext* resource_context = browser_context->GetResourceContext(); 604 ResourceContext* resource_context = browser_context->GetResourceContext();
604 605
605 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 606 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
606 GetID(), PROCESS_TYPE_RENDERER, resource_context, 607 GetID(), PROCESS_TYPE_RENDERER, resource_context,
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 // Skip widgets in other processes. 1798 // Skip widgets in other processes.
1798 if (widgets[i]->GetProcess()->GetID() != GetID()) 1799 if (widgets[i]->GetProcess()->GetID() != GetID())
1799 continue; 1800 continue;
1800 1801
1801 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1802 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1802 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1803 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1803 } 1804 }
1804 } 1805 }
1805 1806
1806 } // namespace content 1807 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698