summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-18 20:58:01 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-18 20:58:01 +0000
commit875ee82945cfb42b16891c2aa5cca7101fc121e4 (patch)
tree87695916e983accc2f7ed06b1339728ffe6d6bb3 /chrome/browser/net
parent03de43e619d7b65ec012e21fbcedd8041be5d776 (diff)
downloadchromium_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 'chrome/browser/net')
-rw-r--r--chrome/browser/net/chrome_url_request_context.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index 061ee29..aff7ba3 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -247,9 +247,9 @@ ChromeURLRequestContext* FactoryForOriginal::Create() {
command_line,
MessageLoop::current() /*io_loop*/));
- net::HttpCache::DefaultBackend* backend =
- new net::HttpCache::DefaultBackend(net::DISK_CACHE, disk_cache_path_,
- cache_size_, NULL);
+ net::HttpCache::DefaultBackend* backend = new net::HttpCache::DefaultBackend(
+ net::DISK_CACHE, disk_cache_path_, cache_size_,
+ ChromeThread::GetMessageLoopProxyForThread(ChromeThread::CACHE));
net::HttpCache* cache =
new net::HttpCache(io_thread()->globals()->network_change_notifier.get(),
context->host_resolver(),
@@ -446,9 +446,9 @@ ChromeURLRequestContext* FactoryForMedia::Create() {
// Create a media cache with default size.
// TODO(hclam): make the maximum size of media cache configurable.
- net::HttpCache::DefaultBackend* backend =
- new net::HttpCache::DefaultBackend(net::MEDIA_CACHE, disk_cache_path_,
- cache_size_, NULL);
+ net::HttpCache::DefaultBackend* backend = new net::HttpCache::DefaultBackend(
+ net::MEDIA_CACHE, disk_cache_path_, cache_size_,
+ ChromeThread::GetMessageLoopProxyForThread(ChromeThread::CACHE));
net::HttpCache* main_cache =
main_context->http_transaction_factory()->GetCache();