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

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

Issue 1069943003: Revert of ChannelMojo: Ensure that it always has ScopedIPCSupport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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
« no previous file with comments | « no previous file | content/child/child_thread_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | content/child/child_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698