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

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

Issue 23841002: Create a new RenderFrameHost per child frame when --site-per-process is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: custom deleters rock. Created 7 years, 2 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 #include "content/browser/renderer_host/media/device_request_message_filter.h" 77 #include "content/browser/renderer_host/media/device_request_message_filter.h"
78 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h" 78 #include "content/browser/renderer_host/media/media_stream_dispatcher_host.h"
79 #include "content/browser/renderer_host/media/midi_dispatcher_host.h" 79 #include "content/browser/renderer_host/media/midi_dispatcher_host.h"
80 #include "content/browser/renderer_host/media/midi_host.h" 80 #include "content/browser/renderer_host/media/midi_host.h"
81 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h" 81 #include "content/browser/renderer_host/media/peer_connection_tracker_host.h"
82 #include "content/browser/renderer_host/media/video_capture_host.h" 82 #include "content/browser/renderer_host/media/video_capture_host.h"
83 #include "content/browser/renderer_host/memory_benchmark_message_filter.h" 83 #include "content/browser/renderer_host/memory_benchmark_message_filter.h"
84 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h" 84 #include "content/browser/renderer_host/p2p/socket_dispatcher_host.h"
85 #include "content/browser/renderer_host/pepper/pepper_message_filter.h" 85 #include "content/browser/renderer_host/pepper/pepper_message_filter.h"
86 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h" 86 #include "content/browser/renderer_host/pepper/pepper_renderer_connection.h"
87 #include "content/browser/renderer_host/render_frame_message_filter.h"
87 #include "content/browser/renderer_host/render_message_filter.h" 88 #include "content/browser/renderer_host/render_message_filter.h"
88 #include "content/browser/renderer_host/render_view_host_delegate.h" 89 #include "content/browser/renderer_host/render_view_host_delegate.h"
89 #include "content/browser/renderer_host/render_view_host_impl.h" 90 #include "content/browser/renderer_host/render_view_host_impl.h"
90 #include "content/browser/renderer_host/render_widget_helper.h" 91 #include "content/browser/renderer_host/render_widget_helper.h"
91 #include "content/browser/renderer_host/render_widget_host_impl.h" 92 #include "content/browser/renderer_host/render_widget_host_impl.h"
92 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h" 93 #include "content/browser/renderer_host/socket_stream_dispatcher_host.h"
93 #include "content/browser/renderer_host/text_input_client_message_filter.h" 94 #include "content/browser/renderer_host/text_input_client_message_filter.h"
94 #include "content/browser/resolve_proxy_msg_helper.h" 95 #include "content/browser/resolve_proxy_msg_helper.h"
95 #include "content/browser/speech/input_tag_speech_dispatcher_host.h" 96 #include "content/browser/speech/input_tag_speech_dispatcher_host.h"
96 #include "content/browser/speech/speech_recognition_dispatcher_host.h" 97 #include "content/browser/speech/speech_recognition_dispatcher_host.h"
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 #else 549 #else
549 NULL, 550 NULL,
550 #endif 551 #endif
551 GetBrowserContext(), 552 GetBrowserContext(),
552 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), 553 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()),
553 widget_helper_.get(), 554 widget_helper_.get(),
554 audio_manager, 555 audio_manager,
555 media_internals, 556 media_internals,
556 storage_partition_impl_->GetDOMStorageContext())); 557 storage_partition_impl_->GetDOMStorageContext()));
557 channel_->AddFilter(render_message_filter.get()); 558 channel_->AddFilter(render_message_filter.get());
559 channel_->AddFilter(
560 new RenderFrameMessageFilter(GetID(), widget_helper_.get()));
558 BrowserContext* browser_context = GetBrowserContext(); 561 BrowserContext* browser_context = GetBrowserContext();
559 ResourceContext* resource_context = browser_context->GetResourceContext(); 562 ResourceContext* resource_context = browser_context->GetResourceContext();
560 563
561 scoped_refptr<net::URLRequestContextGetter> request_context( 564 scoped_refptr<net::URLRequestContextGetter> request_context(
562 browser_context->GetRequestContextForRenderProcess(GetID())); 565 browser_context->GetRequestContextForRenderProcess(GetID()));
563 scoped_refptr<net::URLRequestContextGetter> media_request_context( 566 scoped_refptr<net::URLRequestContextGetter> media_request_context(
564 browser_context->GetMediaRequestContextForRenderProcess(GetID())); 567 browser_context->GetMediaRequestContextForRenderProcess(GetID()));
565 568
566 ResourceMessageFilter::GetContextsCallback get_contexts_callback( 569 ResourceMessageFilter::GetContextsCallback get_contexts_callback(
567 base::Bind(&GetContexts, browser_context->GetResourceContext(), 570 base::Bind(&GetContexts, browser_context->GetResourceContext(),
(...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after
1784 // Skip widgets in other processes. 1787 // Skip widgets in other processes.
1785 if (widget->GetProcess()->GetID() != GetID()) 1788 if (widget->GetProcess()->GetID() != GetID())
1786 continue; 1789 continue;
1787 1790
1788 RenderViewHost* rvh = RenderViewHost::From(widget); 1791 RenderViewHost* rvh = RenderViewHost::From(widget);
1789 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1792 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1790 } 1793 }
1791 } 1794 }
1792 1795
1793 } // namespace content 1796 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698