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

Side by Side Diff: content/browser/browser_thread_impl.h

Issue 18414007: Remove unused WEBKIT_DEPRECATED thread (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 #ifndef CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ 5 #ifndef CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
6 #define CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ 6 #define CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
7 7
8 #include "base/threading/thread.h" 8 #include "base/threading/thread.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 24 matching lines...) Expand all
35 private: 35 private:
36 // We implement all the functionality of the public BrowserThread 36 // We implement all the functionality of the public BrowserThread
37 // functions, but state is stored in the BrowserThreadImpl to keep 37 // functions, but state is stored in the BrowserThreadImpl to keep
38 // the API cleaner. Therefore make BrowserThread a friend class. 38 // the API cleaner. Therefore make BrowserThread a friend class.
39 friend class BrowserThread; 39 friend class BrowserThread;
40 40
41 // The following are unique function names that makes it possible to tell 41 // The following are unique function names that makes it possible to tell
42 // the thread id from the callstack alone in crash dumps. 42 // the thread id from the callstack alone in crash dumps.
43 void UIThreadRun(base::MessageLoop* message_loop); 43 void UIThreadRun(base::MessageLoop* message_loop);
44 void DBThreadRun(base::MessageLoop* message_loop); 44 void DBThreadRun(base::MessageLoop* message_loop);
45 void WebKitThreadRun(base::MessageLoop* message_loop);
46 void FileThreadRun(base::MessageLoop* message_loop); 45 void FileThreadRun(base::MessageLoop* message_loop);
47 void FileUserBlockingThreadRun(base::MessageLoop* message_loop); 46 void FileUserBlockingThreadRun(base::MessageLoop* message_loop);
48 void ProcessLauncherThreadRun(base::MessageLoop* message_loop); 47 void ProcessLauncherThreadRun(base::MessageLoop* message_loop);
49 void CacheThreadRun(base::MessageLoop* message_loop); 48 void CacheThreadRun(base::MessageLoop* message_loop);
50 void IOThreadRun(base::MessageLoop* message_loop); 49 void IOThreadRun(base::MessageLoop* message_loop);
51 50
52 static bool PostTaskHelper( 51 static bool PostTaskHelper(
53 BrowserThread::ID identifier, 52 BrowserThread::ID identifier,
54 const tracked_objects::Location& from_here, 53 const tracked_objects::Location& from_here,
55 const base::Closure& task, 54 const base::Closure& task,
56 base::TimeDelta delay, 55 base::TimeDelta delay,
57 bool nestable); 56 bool nestable);
58 57
59 // Common initialization code for the constructors. 58 // Common initialization code for the constructors.
60 void Initialize(); 59 void Initialize();
61 60
62 // For testing. 61 // For testing.
63 friend class ContentTestSuiteBaseListener; 62 friend class ContentTestSuiteBaseListener;
64 static void FlushThreadPoolHelper(); 63 static void FlushThreadPoolHelper();
65 64
66 // The identifier of this thread. Only one thread can exist with a given 65 // The identifier of this thread. Only one thread can exist with a given
67 // identifier at a given time. 66 // identifier at a given time.
68 ID identifier_; 67 ID identifier_;
69 }; 68 };
70 69
71 } // namespace content 70 } // namespace content
72 71
73 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_ 72 #endif // CONTENT_BROWSER_BROWSER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698