| OLD | NEW |
| 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 Loading... |
| 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 #else | 547 #else |
| 547 NULL, | 548 NULL, |
| 548 #endif | 549 #endif |
| 549 GetBrowserContext(), | 550 GetBrowserContext(), |
| 550 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), | 551 GetBrowserContext()->GetRequestContextForRenderProcess(GetID()), |
| 551 widget_helper_.get(), | 552 widget_helper_.get(), |
| 552 audio_manager, | 553 audio_manager, |
| 553 media_internals, | 554 media_internals, |
| 554 storage_partition_impl_->GetDOMStorageContext())); | 555 storage_partition_impl_->GetDOMStorageContext())); |
| 555 channel_->AddFilter(render_message_filter.get()); | 556 channel_->AddFilter(render_message_filter.get()); |
| 557 channel_->AddFilter( |
| 558 new RenderFrameMessageFilter(GetID(), widget_helper_.get())); |
| 556 BrowserContext* browser_context = GetBrowserContext(); | 559 BrowserContext* browser_context = GetBrowserContext(); |
| 557 ResourceContext* resource_context = browser_context->GetResourceContext(); | 560 ResourceContext* resource_context = browser_context->GetResourceContext(); |
| 558 | 561 |
| 559 scoped_refptr<net::URLRequestContextGetter> request_context( | 562 scoped_refptr<net::URLRequestContextGetter> request_context( |
| 560 browser_context->GetRequestContextForRenderProcess(GetID())); | 563 browser_context->GetRequestContextForRenderProcess(GetID())); |
| 561 scoped_refptr<net::URLRequestContextGetter> media_request_context( | 564 scoped_refptr<net::URLRequestContextGetter> media_request_context( |
| 562 browser_context->GetMediaRequestContextForRenderProcess(GetID())); | 565 browser_context->GetMediaRequestContextForRenderProcess(GetID())); |
| 563 | 566 |
| 564 ResourceMessageFilter::GetContextsCallback get_contexts_callback( | 567 ResourceMessageFilter::GetContextsCallback get_contexts_callback( |
| 565 base::Bind(&GetContexts, browser_context->GetResourceContext(), | 568 base::Bind(&GetContexts, browser_context->GetResourceContext(), |
| (...skipping 1216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1782 // Skip widgets in other processes. | 1785 // Skip widgets in other processes. |
| 1783 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1786 if (widgets[i]->GetProcess()->GetID() != GetID()) |
| 1784 continue; | 1787 continue; |
| 1785 | 1788 |
| 1786 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1789 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
| 1787 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1790 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1788 } | 1791 } |
| 1789 } | 1792 } |
| 1790 | 1793 |
| 1791 } // namespace content | 1794 } // namespace content |
| OLD | NEW |