| 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 604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 615 channel_->AddFilter(new WebRTCIdentityServiceHost( | 615 channel_->AddFilter(new WebRTCIdentityServiceHost( |
| 616 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 616 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
| 617 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 617 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
| 618 channel_->AddFilter(peer_connection_tracker_host_.get()); | 618 channel_->AddFilter(peer_connection_tracker_host_.get()); |
| 619 channel_->AddFilter(new MediaStreamDispatcherHost( | 619 channel_->AddFilter(new MediaStreamDispatcherHost( |
| 620 GetID(), media_stream_manager)); | 620 GetID(), media_stream_manager)); |
| 621 channel_->AddFilter( | 621 channel_->AddFilter( |
| 622 new DeviceRequestMessageFilter(resource_context, media_stream_manager)); | 622 new DeviceRequestMessageFilter(resource_context, media_stream_manager)); |
| 623 #endif | 623 #endif |
| 624 #if defined(ENABLE_PLUGINS) | 624 #if defined(ENABLE_PLUGINS) |
| 625 // TODO(raymes): PepperMessageFilter should be removed from here. | |
| 626 channel_->AddFilter(PepperMessageFilter::CreateForRendererProcess()); | |
| 627 channel_->AddFilter(new PepperRendererConnection(GetID())); | 625 channel_->AddFilter(new PepperRendererConnection(GetID())); |
| 628 #endif | 626 #endif |
| 629 #if defined(ENABLE_INPUT_SPEECH) | 627 #if defined(ENABLE_INPUT_SPEECH) |
| 630 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 628 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
| 631 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); | 629 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 632 #endif | 630 #endif |
| 633 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 631 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
| 634 GetID(), storage_partition_impl_->GetURLRequestContext())); | 632 GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 635 channel_->AddFilter(new FileAPIMessageFilter( | 633 channel_->AddFilter(new FileAPIMessageFilter( |
| 636 GetID(), | 634 GetID(), |
| (...skipping 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1772 // Skip widgets in other processes. | 1770 // Skip widgets in other processes. |
| 1773 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1771 if (widgets[i]->GetProcess()->GetID() != GetID()) |
| 1774 continue; | 1772 continue; |
| 1775 | 1773 |
| 1776 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1774 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
| 1777 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1775 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1778 } | 1776 } |
| 1779 } | 1777 } |
| 1780 | 1778 |
| 1781 } // namespace content | 1779 } // namespace content |
| OLD | NEW |