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

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

Issue 2309153002: Remove RenderThreadImpl::Shutdown (Closed)
Patch Set: temp Created 3 years, 11 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 (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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 } 591 }
592 592
593 void ChildThreadImpl::Shutdown() { 593 void ChildThreadImpl::Shutdown() {
594 // Delete objects that hold references to blink so derived classes can 594 // Delete objects that hold references to blink so derived classes can
595 // safely shutdown blink in their Shutdown implementation. 595 // safely shutdown blink in their Shutdown implementation.
596 file_system_dispatcher_.reset(); 596 file_system_dispatcher_.reset();
597 quota_dispatcher_.reset(); 597 quota_dispatcher_.reset();
598 WebFileSystemImpl::DeleteThreadSpecificInstance(); 598 WebFileSystemImpl::DeleteThreadSpecificInstance();
599 } 599 }
600 600
601 bool ChildThreadImpl::IsRenderThread() {
602 return false;
603 }
604
601 void ChildThreadImpl::OnChannelConnected(int32_t peer_pid) { 605 void ChildThreadImpl::OnChannelConnected(int32_t peer_pid) {
602 channel_connected_factory_.reset(); 606 channel_connected_factory_.reset();
603 } 607 }
604 608
605 void ChildThreadImpl::OnChannelError() { 609 void ChildThreadImpl::OnChannelError() {
606 on_channel_error_called_ = true; 610 on_channel_error_called_ = true;
607 base::MessageLoop::current()->QuitWhenIdle(); 611 base::MessageLoop::current()->QuitWhenIdle();
608 } 612 }
609 613
610 bool ChildThreadImpl::Send(IPC::Message* msg) { 614 bool ChildThreadImpl::Send(IPC::Message* msg) {
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 connected_to_browser_ = true; 874 connected_to_browser_ = true;
871 child_info_ = local_info; 875 child_info_ = local_info;
872 browser_info_ = remote_info; 876 browser_info_ = remote_info;
873 } 877 }
874 878
875 bool ChildThreadImpl::IsInBrowserProcess() const { 879 bool ChildThreadImpl::IsInBrowserProcess() const {
876 return static_cast<bool>(browser_process_io_runner_); 880 return static_cast<bool>(browser_process_io_runner_);
877 } 881 }
878 882
879 } // namespace content 883 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698