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

Unified Diff: content/browser/browser_thread_impl.h

Issue 10796079: Added unique function names (IOTHreadRun, DBTHreadRun, etc) (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_thread_impl.h
===================================================================
--- content/browser/browser_thread_impl.h (revision 147800)
+++ content/browser/browser_thread_impl.h (working copy)
@@ -27,6 +27,7 @@
protected:
virtual void Init() OVERRIDE;
+ virtual void Run(MessageLoop* message_loop) OVERRIDE;
virtual void CleanUp() OVERRIDE;
private:
@@ -35,6 +36,17 @@
// the API cleaner. Therefore make BrowserThread a friend class.
friend class BrowserThread;
+ // The following are unique function names that makes it possible to tell
+ // the thread id from the callstack alone in crash dumps.
+ void UIThreadRun(MessageLoop* message_loop);
+ void DBThreadRun(MessageLoop* message_loop);
+ void WebKitThreadRun(MessageLoop* message_loop);
+ void FileThreadRun(MessageLoop* message_loop);
+ void FileUserBlockingThreadRun(MessageLoop* message_loop);
+ void ProcessLauncherThreadRun(MessageLoop* message_loop);
+ void CacheThreadRun(MessageLoop* message_loop);
+ void IOThreadRun(MessageLoop* message_loop);
+
static bool PostTaskHelper(
BrowserThread::ID identifier,
const tracked_objects::Location& from_here,
« no previous file with comments | « no previous file | content/browser/browser_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698