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

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: android webview init fix merged in. Created 7 years, 3 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 536 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698