diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 18:40:10 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 18:40:10 +0000 |
commit | f870252fda3d5724feeda33aeb6deaf502643a31 (patch) | |
tree | ac8b4391c15be1d0bb3af6def8cba95d0587caae /net/tools/fetch | |
parent | 2c9be01dc74d1b0edff9c9288abcb66516083af0 (diff) | |
download | chromium_src-f870252fda3d5724feeda33aeb6deaf502643a31.zip chromium_src-f870252fda3d5724feeda33aeb6deaf502643a31.tar.gz chromium_src-f870252fda3d5724feeda33aeb6deaf502643a31.tar.bz2 |
Http Cache: Add a backend factory class so that the caller
has more control about the backend instantiation.
BUG=none
TEST=current unit tests.
Review URL: http://codereview.chromium.org/2000011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47050 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/tools/fetch')
-rw-r--r-- | net/tools/fetch/fetch_client.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/tools/fetch/fetch_client.cc b/net/tools/fetch/fetch_client.cc index c34c6b6..5da7756 100644 --- a/net/tools/fetch/fetch_client.cc +++ b/net/tools/fetch/fetch_client.cc @@ -145,7 +145,8 @@ int main(int argc, char**argv) { if (use_cache) { factory = new net::HttpCache(NULL, host_resolver, proxy_service, ssl_config_service, - http_auth_handler_factory.get(), 0); + http_auth_handler_factory.get(), + net::HttpCache::DefaultBackend::InMemory(0)); } else { factory = new net::HttpNetworkLayer( net::ClientSocketFactory::GetDefaultFactory(), NULL, host_resolver, |