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

Unified Diff: chrome/browser/io_thread.h

Issue 8477004: Have content/ create and destroy its own threads. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More IWYU, missing link-time dependency for Chrome Frame. Created 9 years, 1 month 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: chrome/browser/io_thread.h
diff --git a/chrome/browser/io_thread.h b/chrome/browser/io_thread.h
index da098396ff7a49838c168e76261d3e7d69055cd8..7df435fd386834247d2458a27d8b5cd8c3c4b33c 100644
--- a/chrome/browser/io_thread.h
+++ b/chrome/browser/io_thread.h
@@ -49,7 +49,10 @@ class URLRequestContextGetter;
class URLSecurityManager;
} // namespace net
-class IOThread : public content::BrowserProcessSubThread {
+// Contains state associated with, and primarily used on, the IO
+// thread. Also acts as a convenience accessor to the Thread object
+// for the IO thread.
+class IOThread {
public:
struct Globals {
Globals();
@@ -115,6 +118,11 @@ class IOThread : public content::BrowserProcessSubThread {
// called on the IO thread.
void ClearHostCache();
+ // Convenience method similar to base::Thread, giving access to the
+ // actual IO thread.
+ // TODO(joi): Remove this in follow-up changes.
+ MessageLoop* message_loop() const;
+
protected:
virtual void Init();
virtual void CleanUp();

Powered by Google App Engine
This is Rietveld 408576698