summaryrefslogtreecommitdiffstats
path: root/webkit/appcache/appcache_thread.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-07 22:42:01 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-07 22:42:01 +0000
commitf5ad47a18ebe1dfe2656588776557c3a702faf56 (patch)
tree75e5599ad5d40d9972cf8ae8973df9a9853b316a /webkit/appcache/appcache_thread.h
parentce940f01fdcd216b90e5005f840d3df5d19190cd (diff)
downloadchromium_src-f5ad47a18ebe1dfe2656588776557c3a702faf56.zip
chromium_src-f5ad47a18ebe1dfe2656588776557c3a702faf56.tar.gz
chromium_src-f5ad47a18ebe1dfe2656588776557c3a702faf56.tar.bz2
AppCache: Use a dedicated thread for the disk cache.
BUG=26730 TEST=current tests Review URL: http://codereview.chromium.org/2249005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49111 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/appcache/appcache_thread.h')
-rw-r--r--webkit/appcache/appcache_thread.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/webkit/appcache/appcache_thread.h b/webkit/appcache/appcache_thread.h
index 7a0a70c..b4e46ca 100644
--- a/webkit/appcache/appcache_thread.h
+++ b/webkit/appcache/appcache_thread.h
@@ -11,8 +11,6 @@ namespace tracked_objects {
class Location;
}
-class MessageLoop;
-
namespace appcache {
// The appcache system uses two threads, an IO thread and a DB thread.
@@ -20,18 +18,14 @@ namespace appcache {
// providing them to the appcache library by providing a concrete
// implementation of the PostTask and CurrentlyOn methods declared here,
// and by calling the Init method prior to using the appcache library.
-// The disk_cache also requires the embedder to provide a thread message
-// loop.
class AppCacheThread {
public:
- static void Init(int db, int io, MessageLoop* disk_cache_thread) {
+ static void Init(int db, int io) {
db_ = db;
io_ = io;
- disk_cache_thread_ = disk_cache_thread;
}
static int db() { return db_; }
static int io() { return io_; }
- static MessageLoop* disk_cache_thread() { return disk_cache_thread_; }
static bool PostTask(int id,
const tracked_objects::Location& from_here,
@@ -51,7 +45,6 @@ class AppCacheThread {
static int db_;
static int io_;
- static MessageLoop* disk_cache_thread_;
};
} // namespace appcache