| 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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 682       BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); | 682       BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); | 
| 683   scoped_refptr<base::SequencedTaskRunner> mojo_task_runner = | 683   scoped_refptr<base::SequencedTaskRunner> mojo_task_runner = | 
| 684       BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO) | 684       BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO) | 
| 685             ->task_runner(); | 685             ->task_runner(); | 
| 686   if (ShouldUseMojoChannel()) { | 686   if (ShouldUseMojoChannel()) { | 
| 687     VLOG(1) << "Mojo Channel is enabled on host"; | 687     VLOG(1) << "Mojo Channel is enabled on host"; | 
| 688     if (!channel_mojo_host_) { | 688     if (!channel_mojo_host_) { | 
| 689       channel_mojo_host_.reset(new IPC::ChannelMojoHost(mojo_task_runner)); | 689       channel_mojo_host_.reset(new IPC::ChannelMojoHost(mojo_task_runner)); | 
| 690     } | 690     } | 
| 691 | 691 | 
| 692     return IPC::ChannelProxy::Create(IPC::ChannelMojo::CreateServerFactory( | 692     return IPC::ChannelProxy::Create( | 
| 693                                          channel_mojo_host_->channel_delegate(), | 693         IPC::ChannelMojo::CreateServerFactory( | 
| 694                                          mojo_task_runner, channel_id), | 694             channel_mojo_host_->channel_delegate(), channel_id), | 
| 695                                      this, runner.get()); | 695         this, | 
|  | 696         runner.get()); | 
| 696   } | 697   } | 
| 697 | 698 | 
| 698   return IPC::ChannelProxy::Create( | 699   return IPC::ChannelProxy::Create( | 
| 699       channel_id, IPC::Channel::MODE_SERVER, this, runner.get()); | 700       channel_id, IPC::Channel::MODE_SERVER, this, runner.get()); | 
| 700 } | 701 } | 
| 701 | 702 | 
| 702 void RenderProcessHostImpl::CreateMessageFilters() { | 703 void RenderProcessHostImpl::CreateMessageFilters() { | 
| 703   DCHECK_CURRENTLY_ON(BrowserThread::UI); | 704   DCHECK_CURRENTLY_ON(BrowserThread::UI); | 
| 704   const base::CommandLine& browser_command_line = | 705   const base::CommandLine& browser_command_line = | 
| 705       *base::CommandLine::ForCurrentProcess(); | 706       *base::CommandLine::ForCurrentProcess(); | 
| (...skipping 1756 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2462   if (worker_ref_count_ == 0) | 2463   if (worker_ref_count_ == 0) | 
| 2463     Cleanup(); | 2464     Cleanup(); | 
| 2464 } | 2465 } | 
| 2465 | 2466 | 
| 2466 void RenderProcessHostImpl::GetAudioOutputControllers( | 2467 void RenderProcessHostImpl::GetAudioOutputControllers( | 
| 2467     const GetAudioOutputControllersCallback& callback) const { | 2468     const GetAudioOutputControllersCallback& callback) const { | 
| 2468   audio_renderer_host()->GetOutputControllers(callback); | 2469   audio_renderer_host()->GetOutputControllers(callback); | 
| 2469 } | 2470 } | 
| 2470 | 2471 | 
| 2471 }  // namespace content | 2472 }  // namespace content | 
| OLD | NEW | 
|---|