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

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

Issue 21183002: Adding key press detection in the browser process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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
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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 ChromeBlobStorageContext::GetFor(browser_context), 610 ChromeBlobStorageContext::GetFor(browser_context),
611 storage_partition_impl_->GetFileSystemContext(), 611 storage_partition_impl_->GetFileSystemContext(),
612 new RendererURLRequestContextSelector(browser_context, GetID())); 612 new RendererURLRequestContextSelector(browser_context, GetID()));
613 613
614 channel_->AddFilter(resource_message_filter); 614 channel_->AddFilter(resource_message_filter);
615 MediaStreamManager* media_stream_manager = 615 MediaStreamManager* media_stream_manager =
616 BrowserMainLoop::GetInstance()->media_stream_manager(); 616 BrowserMainLoop::GetInstance()->media_stream_manager();
617 channel_->AddFilter(new AudioInputRendererHost( 617 channel_->AddFilter(new AudioInputRendererHost(
618 audio_manager, 618 audio_manager,
619 media_stream_manager, 619 media_stream_manager,
620 BrowserMainLoop::GetInstance()->audio_mirroring_manager())); 620 BrowserMainLoop::GetInstance()->audio_mirroring_manager(),
621 BrowserMainLoop::GetInstance()->user_input_monitor()));
621 channel_->AddFilter(new AudioRendererHost( 622 channel_->AddFilter(new AudioRendererHost(
622 GetID(), audio_manager, 623 GetID(),
624 audio_manager,
623 BrowserMainLoop::GetInstance()->audio_mirroring_manager(), 625 BrowserMainLoop::GetInstance()->audio_mirroring_manager(),
624 media_internals, media_stream_manager)); 626 media_internals,
627 media_stream_manager));
625 channel_->AddFilter( 628 channel_->AddFilter(
626 new MIDIHost(BrowserMainLoop::GetInstance()->midi_manager())); 629 new MIDIHost(BrowserMainLoop::GetInstance()->midi_manager()));
627 channel_->AddFilter(new MIDIDispatcherHost(GetID(), browser_context)); 630 channel_->AddFilter(new MIDIDispatcherHost(GetID(), browser_context));
628 channel_->AddFilter(new VideoCaptureHost(media_stream_manager)); 631 channel_->AddFilter(new VideoCaptureHost(media_stream_manager));
629 channel_->AddFilter(new AppCacheDispatcherHost( 632 channel_->AddFilter(new AppCacheDispatcherHost(
630 storage_partition_impl_->GetAppCacheService(), 633 storage_partition_impl_->GetAppCacheService(),
631 GetID())); 634 GetID()));
632 channel_->AddFilter(new ClipboardMessageFilter); 635 channel_->AddFilter(new ClipboardMessageFilter);
633 channel_->AddFilter(new DOMStorageMessageFilter( 636 channel_->AddFilter(new DOMStorageMessageFilter(
634 GetID(), 637 GetID(),
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1804 // Skip widgets in other processes. 1807 // Skip widgets in other processes.
1805 if (widgets[i]->GetProcess()->GetID() != GetID()) 1808 if (widgets[i]->GetProcess()->GetID() != GetID())
1806 continue; 1809 continue;
1807 1810
1808 RenderViewHost* rvh = RenderViewHost::From(widgets[i]); 1811 RenderViewHost* rvh = RenderViewHost::From(widgets[i]);
1809 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences()); 1812 rvh->UpdateWebkitPreferences(rvh->GetWebkitPreferences());
1810 } 1813 }
1811 } 1814 }
1812 1815
1813 } // namespace content 1816 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698