| 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 init_time_ = base::TimeTicks::Now(); | 658 init_time_ = base::TimeTicks::Now(); |
| 659 return true; | 659 return true; |
| 660 } | 660 } |
| 661 | 661 |
| 662 scoped_ptr<IPC::ChannelProxy> RenderProcessHostImpl::CreateChannelProxy( | 662 scoped_ptr<IPC::ChannelProxy> RenderProcessHostImpl::CreateChannelProxy( |
| 663 const std::string& channel_id) { | 663 const std::string& channel_id) { |
| 664 scoped_refptr<base::SingleThreadTaskRunner> runner = | 664 scoped_refptr<base::SingleThreadTaskRunner> runner = |
| 665 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); | 665 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); |
| 666 if (ShouldUseMojoChannel()) { | 666 if (ShouldUseMojoChannel()) { |
| 667 VLOG(1) << "Mojo Channel is enabled on host"; | 667 VLOG(1) << "Mojo Channel is enabled on host"; |
| 668 scoped_refptr<base::TaskRunner> io_task_runner = | 668 scoped_refptr<base::SequencedTaskRunner> io_task_runner = |
| 669 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO) | 669 BrowserThread::UnsafeGetMessageLoopForThread(BrowserThread::IO) |
| 670 ->task_runner(); | 670 ->task_runner(); |
| 671 if (!channel_mojo_host_) { | 671 if (!channel_mojo_host_) { |
| 672 channel_mojo_host_.reset(new IPC::ChannelMojoHost(io_task_runner)); | 672 channel_mojo_host_.reset(new IPC::ChannelMojoHost(io_task_runner)); |
| 673 } | 673 } |
| 674 | 674 |
| 675 if (run_renderer_in_process()) { | 675 if (run_renderer_in_process()) { |
| 676 ChannelInit::SetSingleProcessIOTaskRunner(io_task_runner); | 676 ChannelInit::SetSingleProcessIOTaskRunner(io_task_runner); |
| 677 } | 677 } |
| 678 | 678 |
| (...skipping 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2397 if (worker_ref_count_ == 0) | 2397 if (worker_ref_count_ == 0) |
| 2398 Cleanup(); | 2398 Cleanup(); |
| 2399 } | 2399 } |
| 2400 | 2400 |
| 2401 void RenderProcessHostImpl::GetAudioOutputControllers( | 2401 void RenderProcessHostImpl::GetAudioOutputControllers( |
| 2402 const GetAudioOutputControllersCallback& callback) const { | 2402 const GetAudioOutputControllersCallback& callback) const { |
| 2403 audio_renderer_host()->GetOutputControllers(callback); | 2403 audio_renderer_host()->GetOutputControllers(callback); |
| 2404 } | 2404 } |
| 2405 | 2405 |
| 2406 } // namespace content | 2406 } // namespace content |
| OLD | NEW |