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

Side by Side Diff: content/child/child_thread_impl.cc

Issue 2099063002: Migrate RenderProcessHost, ChildThread to InterfaceRegistry/Provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 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 | « content/child/child_thread_impl.h ('k') | content/child/mojo/mojo_application.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 #include "content/child/child_thread_impl.h" 5 #include "content/child/child_thread_impl.h"
6 6
7 #include <signal.h> 7 #include <signal.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 575 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 #endif 586 #endif
587 587
588 void ChildThreadImpl::RecordAction(const base::UserMetricsAction& action) { 588 void ChildThreadImpl::RecordAction(const base::UserMetricsAction& action) {
589 NOTREACHED(); 589 NOTREACHED();
590 } 590 }
591 591
592 void ChildThreadImpl::RecordComputedAction(const std::string& action) { 592 void ChildThreadImpl::RecordComputedAction(const std::string& action) {
593 NOTREACHED(); 593 NOTREACHED();
594 } 594 }
595 595
596 shell::InterfaceRegistry* ChildThreadImpl::GetInterfaceRegistry() {
597 return mojo_application_->interface_registry();
598 }
599
600 shell::InterfaceProvider* ChildThreadImpl::GetRemoteInterfaces() {
601 return mojo_application_->remote_interfaces();
602 }
603
596 IPC::MessageRouter* ChildThreadImpl::GetRouter() { 604 IPC::MessageRouter* ChildThreadImpl::GetRouter() {
597 DCHECK(base::MessageLoop::current() == message_loop()); 605 DCHECK(base::MessageLoop::current() == message_loop());
598 return &router_; 606 return &router_;
599 } 607 }
600 608
601 std::unique_ptr<base::SharedMemory> ChildThreadImpl::AllocateSharedMemory( 609 std::unique_ptr<base::SharedMemory> ChildThreadImpl::AllocateSharedMemory(
602 size_t buf_size) { 610 size_t buf_size) {
603 DCHECK(base::MessageLoop::current() == message_loop()); 611 DCHECK(base::MessageLoop::current() == message_loop());
604 return AllocateSharedMemory(buf_size, this, nullptr); 612 return AllocateSharedMemory(buf_size, this, nullptr);
605 } 613 }
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 void ChildThreadImpl::EnsureConnected() { 751 void ChildThreadImpl::EnsureConnected() {
744 VLOG(0) << "ChildThreadImpl::EnsureConnected()"; 752 VLOG(0) << "ChildThreadImpl::EnsureConnected()";
745 base::Process::Current().Terminate(0, false); 753 base::Process::Current().Terminate(0, false);
746 } 754 }
747 755
748 bool ChildThreadImpl::IsInBrowserProcess() const { 756 bool ChildThreadImpl::IsInBrowserProcess() const {
749 return static_cast<bool>(browser_process_io_runner_); 757 return static_cast<bool>(browser_process_io_runner_);
750 } 758 }
751 759
752 } // namespace content 760 } // namespace content
OLDNEW
« no previous file with comments | « content/child/child_thread_impl.h ('k') | content/child/mojo/mojo_application.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698