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

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

Issue 23551005: Revert 219709 "Remove the Extensions URLRequestContext." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 storage_partition_impl_->GetURLRequestContext(), 557 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()),
558 storage_partition_impl_->GetCookieStoreMap(),
559 widget_helper_.get(), 558 widget_helper_.get(),
560 audio_manager, 559 audio_manager,
561 media_internals, 560 media_internals,
562 storage_partition_impl_->GetDOMStorageContext())); 561 storage_partition_impl_->GetDOMStorageContext()));
563 channel_->AddFilter(render_message_filter.get()); 562 channel_->AddFilter(render_message_filter.get());
564 BrowserContext* browser_context = GetBrowserContext(); 563 BrowserContext* browser_context = GetBrowserContext();
565 ResourceContext* resource_context = browser_context->GetResourceContext(); 564 ResourceContext* resource_context = browser_context->GetResourceContext();
566 565
567 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 566 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
568 GetID(), PROCESS_TYPE_RENDERER, resource_context, 567 GetID(), PROCESS_TYPE_RENDERER, resource_context,
(...skipping 1202 matching lines...) Expand 10 before | Expand all | Expand 10 after
1771 // Skip widgets in other processes. 1770 // Skip widgets in other processes.
1772 if (widgets[i]->GetProcess()->GetID() != GetID()) 1771 if (widgets[i]->GetProcess()->GetID() != GetID())
1773 continue; 1772 continue;
1774 1773
1775 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1774 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1776 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1775 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1777 } 1776 }
1778 } 1777 }
1779 1778
1780 } // namespace content 1779 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/browser/renderer_host/render_message_filter.cc ('k') | trunk/src/content/browser/storage_partition_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698