diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-18 20:58:01 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-18 20:58:01 +0000 |
commit | 875ee82945cfb42b16891c2aa5cca7101fc121e4 (patch) | |
tree | 87695916e983accc2f7ed06b1339728ffe6d6bb3 /net/http/http_cache.h | |
parent | 03de43e619d7b65ec012e21fbcedd8041be5d776 (diff) | |
download | chromium_src-875ee82945cfb42b16891c2aa5cca7101fc121e4.zip chromium_src-875ee82945cfb42b16891c2aa5cca7101fc121e4.tar.gz chromium_src-875ee82945cfb42b16891c2aa5cca7101fc121e4.tar.bz2 |
Create a dedicated cache thread and use it to create the
Http cache.
BUG=26730
TEST=none
Review URL: http://codereview.chromium.org/1989014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47564 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r-- | net/http/http_cache.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h index c82dc4e..177bdc7 100644 --- a/net/http/http_cache.h +++ b/net/http/http_cache.h @@ -20,6 +20,7 @@ #include "base/basictypes.h" #include "base/file_path.h" #include "base/hash_tables.h" +#include "base/message_loop_proxy.h" #include "base/scoped_ptr.h" #include "base/task.h" #include "base/weak_ptr.h" @@ -28,7 +29,6 @@ #include "net/http/http_transaction_factory.h" class GURL; -class MessageLoop; class ViewCacheHelper; namespace disk_cache { @@ -89,7 +89,7 @@ class HttpCache : public HttpTransactionFactory, // |cache_thread| is the thread where disk operations should take place. If // |max_bytes| is zero, a default value will be calculated automatically. DefaultBackend(CacheType type, const FilePath& path, int max_bytes, - MessageLoop* thread) + base::MessageLoopProxy* thread) : type_(type), path_(path), max_bytes_(max_bytes), thread_(thread) {} // Returns a factory for an in-memory cache. @@ -105,7 +105,7 @@ class HttpCache : public HttpTransactionFactory, CacheType type_; const FilePath path_; int max_bytes_; - MessageLoop* thread_; + scoped_refptr<base::MessageLoopProxy> thread_; }; // The disk cache is initialized lazily (by CreateTransaction) in this case. |