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

Unified Diff: content/child/child_thread.h

Issue 17741010: Make ChildThread::current() and ChildProcess::current() only work on the main thread of the child... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and also fix gpu single process case Created 7 years, 6 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.h
===================================================================
--- content/child/child_thread.h (revision 208740)
+++ content/child/child_thread.h (working copy)
@@ -93,9 +93,6 @@
return quota_dispatcher_.get();
}
- // Safe to call on any thread, as long as it's guaranteed that the thread's
- // lifetime is less than the main thread. The |filter| returned may only
- // be used on background threads.
IPC::SyncMessageFilter* sync_message_filter() const {
return sync_message_filter_.get();
}
@@ -113,10 +110,14 @@
base::MessageLoop* message_loop() const { return message_loop_; }
- // Returns the one child thread.
+ // Returns the one child thread. Can only be called on the main thread.
static ChildThread* current();
- virtual bool IsWebFrameValid(WebKit::WebFrame* frame);
+#if defined(OS_ANDROID)
+ // Called on Android's service thread to shutdown the main thread of this
+ // process.
+ static void ShutdownThread();
+#endif
protected:
friend class ChildProcess;

Powered by Google App Engine
This is Rietveld 408576698