summaryrefslogtreecommitdiffstats
path: root/chrome/common/child_process.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/child_process.cc')
-rw-r--r--chrome/common/child_process.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/child_process.cc b/chrome/common/child_process.cc
index 115308e..dd6fd40 100644
--- a/chrome/common/child_process.cc
+++ b/chrome/common/child_process.cc
@@ -48,6 +48,14 @@ ChildProcess::~ChildProcess() {
child_process_ = NULL;
}
+ChildThread* ChildProcess::main_thread() {
+ return main_thread_.get();
+}
+
+void ChildProcess::set_main_thread(ChildThread* thread) {
+ main_thread_.reset(thread);
+}
+
void ChildProcess::AddRefProcess() {
DCHECK(!main_thread_.get() || // null in unittests.
MessageLoop::current() == main_thread_->message_loop());