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

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

Issue 9369009: Make content::ResourceContext be a real interface like the rest of the Content API (i.e. don't ha... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync Created 8 years, 10 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 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 void RenderProcessHostImpl::CreateMessageFilters() { 440 void RenderProcessHostImpl::CreateMessageFilters() {
441 scoped_refptr<RenderMessageFilter> render_message_filter( 441 scoped_refptr<RenderMessageFilter> render_message_filter(
442 new RenderMessageFilter( 442 new RenderMessageFilter(
443 GetID(), 443 GetID(),
444 PluginServiceImpl::GetInstance(), 444 PluginServiceImpl::GetInstance(),
445 GetBrowserContext(), 445 GetBrowserContext(),
446 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), 446 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()),
447 widget_helper_)); 447 widget_helper_));
448 channel_->AddFilter(render_message_filter); 448 channel_->AddFilter(render_message_filter);
449 content::BrowserContext* browser_context = GetBrowserContext(); 449 content::BrowserContext* browser_context = GetBrowserContext();
450 const content::ResourceContext* resource_context = 450 content::ResourceContext* resource_context =
451 &browser_context->GetResourceContext(); 451 browser_context->GetResourceContext();
452 452
453 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter( 453 ResourceMessageFilter* resource_message_filter = new ResourceMessageFilter(
454 GetID(), content::PROCESS_TYPE_RENDERER, resource_context, 454 GetID(), content::PROCESS_TYPE_RENDERER, resource_context,
455 new RendererURLRequestContextSelector(browser_context, GetID())); 455 new RendererURLRequestContextSelector(browser_context, GetID()));
456 456
457 channel_->AddFilter(resource_message_filter); 457 channel_->AddFilter(resource_message_filter);
458 channel_->AddFilter(new AudioInputRendererHost(resource_context)); 458 channel_->AddFilter(new AudioInputRendererHost(resource_context));
459 channel_->AddFilter(new AudioRendererHost(resource_context)); 459 channel_->AddFilter(new AudioRendererHost(resource_context));
460 channel_->AddFilter(new VideoCaptureHost(resource_context)); 460 channel_->AddFilter(new VideoCaptureHost(resource_context));
461 channel_->AddFilter(new AppCacheDispatcherHost( 461 channel_->AddFilter(new AppCacheDispatcherHost(
(...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after
1293 // Only honor the request if appropriate persmissions are granted. 1293 // Only honor the request if appropriate persmissions are granted.
1294 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(), 1294 if (ChildProcessSecurityPolicyImpl::GetInstance()->CanReadFile(GetID(),
1295 path)) 1295 path))
1296 content::GetContentClient()->browser()->OpenItem(path); 1296 content::GetContentClient()->browser()->OpenItem(path);
1297 } 1297 }
1298 1298
1299 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) { 1299 void RenderProcessHostImpl::OnSavedPageAsMHTML(int job_id, int64 data_size) {
1300 content::GetContentClient()->browser()->GetMHTMLGenerationManager()-> 1300 content::GetContentClient()->browser()->GetMHTMLGenerationManager()->
1301 MHTMLGenerated(job_id, data_size); 1301 MHTMLGenerated(job_id, data_size);
1302 } 1302 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_message_filter.cc ('k') | content/browser/renderer_host/resource_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698