| 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 643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 654 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); | 654 GetID(), storage_partition_impl_->GetWebRTCIdentityStore())); |
| 655 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); | 655 peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID()); |
| 656 channel_->AddFilter(peer_connection_tracker_host_.get()); | 656 channel_->AddFilter(peer_connection_tracker_host_.get()); |
| 657 channel_->AddFilter(new MediaStreamDispatcherHost( | 657 channel_->AddFilter(new MediaStreamDispatcherHost( |
| 658 GetID(), media_stream_manager)); | 658 GetID(), media_stream_manager)); |
| 659 channel_->AddFilter( | 659 channel_->AddFilter( |
| 660 new DeviceRequestMessageFilter(resource_context, media_stream_manager)); | 660 new DeviceRequestMessageFilter(resource_context, media_stream_manager)); |
| 661 #endif | 661 #endif |
| 662 #if defined(ENABLE_PLUGINS) | 662 #if defined(ENABLE_PLUGINS) |
| 663 // TODO(raymes): PepperMessageFilter should be removed from here. | 663 // TODO(raymes): PepperMessageFilter should be removed from here. |
| 664 channel_->AddFilter(new PepperMessageFilter(GetID(), browser_context)); | 664 channel_->AddFilter(PepperMessageFilter::CreateInProcess(browser_context)); |
| 665 channel_->AddFilter(new PepperRendererConnection(GetID())); | 665 channel_->AddFilter(new PepperRendererConnection(GetID())); |
| 666 #endif | 666 #endif |
| 667 #if defined(ENABLE_INPUT_SPEECH) | 667 #if defined(ENABLE_INPUT_SPEECH) |
| 668 channel_->AddFilter(new InputTagSpeechDispatcherHost( | 668 channel_->AddFilter(new InputTagSpeechDispatcherHost( |
| 669 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); | 669 IsGuest(), GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 670 #endif | 670 #endif |
| 671 channel_->AddFilter(new SpeechRecognitionDispatcherHost( | 671 channel_->AddFilter(new SpeechRecognitionDispatcherHost( |
| 672 GetID(), storage_partition_impl_->GetURLRequestContext())); | 672 GetID(), storage_partition_impl_->GetURLRequestContext())); |
| 673 channel_->AddFilter(new FileAPIMessageFilter( | 673 channel_->AddFilter(new FileAPIMessageFilter( |
| 674 GetID(), | 674 GetID(), |
| (...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1807 // Skip widgets in other processes. | 1807 // Skip widgets in other processes. |
| 1808 if (widgets[i]->GetProcess()->GetID() != GetID()) | 1808 if (widgets[i]->GetProcess()->GetID() != GetID()) |
| 1809 continue; | 1809 continue; |
| 1810 | 1810 |
| 1811 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); | 1811 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); |
| 1812 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); | 1812 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); |
| 1813 } | 1813 } |
| 1814 } | 1814 } |
| 1815 | 1815 |
| 1816 } // namespace content | 1816 } // namespace content |
| OLD | NEW |