diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 23:40:15 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 23:40:15 +0000 |
commit | 88fb4ada915e7f37a6ac939c10ef0ff96889dc71 (patch) | |
tree | e7457fbdbde126435002d6e29d1c7d1565d19ec7 /net/http/http_cache.h | |
parent | bd18902708017f8b22ed9a4c6e9b3e1b130f2a4c (diff) | |
download | chromium_src-88fb4ada915e7f37a6ac939c10ef0ff96889dc71.zip chromium_src-88fb4ada915e7f37a6ac939c10ef0ff96889dc71.tar.gz chromium_src-88fb4ada915e7f37a6ac939c10ef0ff96889dc71.tar.bz2 |
Convert the HTTP cache to use FilePath rather than wstring for the
disk cache path.
BUG=24672
Review URL: http://codereview.chromium.org/276048
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29213 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r-- | net/http/http_cache.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h index 35d16c6..fe77912 100644 --- a/net/http/http_cache.h +++ b/net/http/http_cache.h @@ -18,6 +18,7 @@ #include <set> #include "base/basictypes.h" +#include "base/file_path.h" #include "base/hash_tables.h" #include "base/scoped_ptr.h" #include "base/task.h" @@ -64,7 +65,7 @@ class HttpCache : public HttpTransactionFactory, HttpCache(HostResolver* host_resolver, ProxyService* proxy_service, SSLConfigService* ssl_config_service, - const std::wstring& cache_dir, + const FilePath& cache_dir, int cache_size); // Initialize the cache from the directory where its data is stored. The @@ -73,7 +74,7 @@ class HttpCache : public HttpTransactionFactory, // Provide an existing HttpNetworkSession, the cache can construct a // network layer with a shared HttpNetworkSession in order for multiple // network layers to share information (e.g. authenication data). - HttpCache(HttpNetworkSession* session, const std::wstring& cache_dir, + HttpCache(HttpNetworkSession* session, const FilePath& cache_dir, int cache_size); // Initialize using an in-memory cache. The cache is initialized lazily @@ -186,7 +187,7 @@ class HttpCache : public HttpTransactionFactory, // Variables ---------------------------------------------------------------- // used when lazily constructing the disk_cache_ - std::wstring disk_cache_dir_; + FilePath disk_cache_dir_; Mode mode_; CacheType type_; |