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

Unified Diff: content/child/child_thread_impl.h

Issue 2159123002: Shutdown renderer main message loop before blink::shutdown() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split out blink::Platform::initialize from blink::initialize Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/child/child_thread_impl.h
diff --git a/content/child/child_thread_impl.h b/content/child/child_thread_impl.h
index 94bd0ba3a76112276d26426d75975b9ee733f7b6..728346e9d07e5e6c43cba52ebf07652353c99bf0 100644
--- a/content/child/child_thread_impl.h
+++ b/content/child/child_thread_impl.h
@@ -182,6 +182,10 @@ class CONTENT_EXPORT ChildThreadImpl
base::MessageLoop* message_loop() const { return message_loop_; }
+ base::SingleThreadTaskRunner* main_task_runner() const {
kinuko 2016/08/09 14:12:18 main_thread_->main_task_runner() looks slightly cr
+ return main_task_runner_.get();
+ }
+
// Returns the one child thread. Can only be called on the main thread.
static ChildThreadImpl* current();
@@ -272,6 +276,8 @@ class CONTENT_EXPORT ChildThreadImpl
base::MessageLoop* message_loop_;
+ scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
+
std::unique_ptr<FileSystemDispatcher> file_system_dispatcher_;
std::unique_ptr<QuotaDispatcher> quota_dispatcher_;

Powered by Google App Engine
This is Rietveld 408576698