diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 23:05:36 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-03 23:05:36 +0000 |
commit | d2db3ce52d865cbade335a02a29fdb7420c7e0f1 (patch) | |
tree | 9e19429cd0163d5c7aec53d0d6b398018c03f25b /chrome/browser/net | |
parent | d1f173980bbf7dffb92b5857866dd75156ad2157 (diff) | |
download | chromium_src-d2db3ce52d865cbade335a02a29fdb7420c7e0f1.zip chromium_src-d2db3ce52d865cbade335a02a29fdb7420c7e0f1.tar.gz chromium_src-d2db3ce52d865cbade335a02a29fdb7420c7e0f1.tar.bz2 |
Change the size of media cache
Setting media cache too large caused creation of cache backend failed
because rvargas is performing a experiment that limits cache size
to ~240MB, respect such change.
TBR=rvargas
Review URL: http://codereview.chromium.org/62028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13123 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/chrome_url_request_context.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc index ce76e69..4c14381a 100644 --- a/chrome/browser/net/chrome_url_request_context.cc +++ b/chrome/browser/net/chrome_url_request_context.cc @@ -151,7 +151,8 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateRequestContextForMedia( // Also share the cookie store of the common profile. context->cookie_store_ = original_context->cookie_store(); - // Create a media cache with maximum size of kint32max (2GB). + // Create a media cache with maximum size of 240000000 (~240MB), which is a + // size cache backend won't complain. // TODO(hclam): make the maximum size of media cache configurable. net::HttpCache* original_cache = original_context->http_transaction_factory()->GetCache(); @@ -165,12 +166,12 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateRequestContextForMedia( net::HttpNetworkLayer* original_network_layer = static_cast<net::HttpNetworkLayer*>(original_cache->network_layer()); cache = new net::HttpCache(original_network_layer->GetSession(), - disk_cache_path.ToWStringHack(), kint32max); + disk_cache_path.ToWStringHack(), 240000000); } else { // If original HttpCache doesn't exist, simply construct one with a whole // new set of network stack. cache = new net::HttpCache(original_context->proxy_service(), - disk_cache_path.ToWStringHack(), kint32max); + disk_cache_path.ToWStringHack(), 240000000); } // Set the cache type to media. |