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

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

Issue 1320783002: Make SharedMemoryHandle a class on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ipc_global
Patch Set: Rebase. Created 5 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
737 const std::string& channel_id) { 737 const std::string& channel_id) {
738 scoped_refptr<base::SingleThreadTaskRunner> runner = 738 scoped_refptr<base::SingleThreadTaskRunner> runner =
739 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); 739 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
740 scoped_refptr<base::SequencedTaskRunner> mojo_task_runner = 740 scoped_refptr<base::SequencedTaskRunner> mojo_task_runner =
741 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO) 741 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO)
742 ->task_runner(); 742 ->task_runner();
743 if (ShouldUseMojoChannel()) { 743 if (ShouldUseMojoChannel()) {
744 VLOG(1) << "Mojo Channel is enabled on host"; 744 VLOG(1) << "Mojo Channel is enabled on host";
745 745
746 return IPC::ChannelProxy::Create( 746 return IPC::ChannelProxy::Create(
747 IPC::ChannelMojo::CreateServerFactory( 747 IPC::ChannelMojo::CreateServerFactory(mojo_task_runner, channel_id),
748 mojo_task_runner, channel_id),
749 this, runner.get()); 748 this, runner.get());
750 } 749 }
751 750
752 return IPC::ChannelProxy::Create( 751 return IPC::ChannelProxy::Create(channel_id, IPC::Channel::MODE_SERVER, this,
753 channel_id, IPC::Channel::MODE_SERVER, this, runner.get()); 752 runner.get());
754 } 753 }
755 754
756 void RenderProcessHostImpl::CreateMessageFilters() { 755 void RenderProcessHostImpl::CreateMessageFilters() {
757 DCHECK_CURRENTLY_ON(BrowserThread::UI); 756 DCHECK_CURRENTLY_ON(BrowserThread::UI);
758 const base::CommandLine& browser_command_line = 757 const base::CommandLine& browser_command_line =
759 *base::CommandLine::ForCurrentProcess(); 758 *base::CommandLine::ForCurrentProcess();
760 AddFilter(new ResourceSchedulerFilter(GetID())); 759 AddFilter(new ResourceSchedulerFilter(GetID()));
761 MediaInternals* media_internals = MediaInternals::GetInstance(); 760 MediaInternals* media_internals = MediaInternals::GetInstance();
762 media::AudioManager* audio_manager = 761 media::AudioManager* audio_manager =
763 BrowserMainLoop::GetInstance()->audio_manager(); 762 BrowserMainLoop::GetInstance()->audio_manager();
(...skipping 1796 matching lines...) Expand 10 before | Expand all | Expand 10 after
2560 void RenderProcessHostImpl::GetAudioOutputControllers( 2559 void RenderProcessHostImpl::GetAudioOutputControllers(
2561 const GetAudioOutputControllersCallback& callback) const { 2560 const GetAudioOutputControllersCallback& callback) const {
2562 audio_renderer_host()->GetOutputControllers(callback); 2561 audio_renderer_host()->GetOutputControllers(callback);
2563 } 2562 }
2564 2563
2565 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() { 2564 BluetoothDispatcherHost* RenderProcessHostImpl::GetBluetoothDispatcherHost() {
2566 return bluetooth_dispatcher_host_.get(); 2565 return bluetooth_dispatcher_host_.get();
2567 } 2566 }
2568 2567
2569 } // namespace content 2568 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/software_output_device_win.cc ('k') | content/common/dwrite_font_platform_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698