summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-14 02:01:18 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-14 02:01:18 +0000
commit3e2d38d217deb01b0cde3b0243c1c02cef64e630 (patch)
tree35b51f32bac96ab26a1f47a34c532f0d7f3200ef /net/http/http_cache.h
parent1c30ff09656448a2fd79ad20b690a0e7a9b955f9 (diff)
downloadchromium_src-3e2d38d217deb01b0cde3b0243c1c02cef64e630.zip
chromium_src-3e2d38d217deb01b0cde3b0243c1c02cef64e630.tar.gz
chromium_src-3e2d38d217deb01b0cde3b0243c1c02cef64e630.tar.bz2
Use RevocableStore to isolate the http cache from its transactions.
This fixes a crash on shutdown when transactions are deleted after the cache is gone. Bug=6956 Review URL: http://codereview.chromium.org/21369 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r--net/http/http_cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h
index 9729527..63e5257 100644
--- a/net/http/http_cache.h
+++ b/net/http/http_cache.h
@@ -164,6 +164,8 @@ class HttpCache : public HttpTransactionFactory {
typedef base::hash_map<std::string, int> PlaybackCacheMap;
scoped_ptr<PlaybackCacheMap> playback_cache_map_;
+ RevocableStore transactions_;
+
DISALLOW_COPY_AND_ASSIGN(HttpCache);
};