diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-24 21:49:50 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-24 21:49:50 +0000 |
commit | 0036f08f0473a219cd9cace78901b6de9006f0b2 (patch) | |
tree | 18d43792ae89cf714a3da8bd2929ed5036ae2462 /net/http/http_cache.h | |
parent | 575ce57a7ea86bbfdc2a03c41efb054d3e9129a8 (diff) | |
download | chromium_src-0036f08f0473a219cd9cace78901b6de9006f0b2.zip chromium_src-0036f08f0473a219cd9cace78901b6de9006f0b2.tar.gz chromium_src-0036f08f0473a219cd9cace78901b6de9006f0b2.tar.bz2 |
http_cache: Don't destroy an entry from the transaction destructor if
there is a task posted to process the next transaction.
Also, fix the check to determine the type of transaction to consider
writers that were converted to readers by the time the destructor runs.
I'm adding more checks to see if these were all the problems related to bug
3931.
B=4731
R=darin
Review URL: http://codereview.chromium.org/12608
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.h')
-rw-r--r-- | net/http/http_cache.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http/http_cache.h b/net/http/http_cache.h index a2683f4..22f0754 100644 --- a/net/http/http_cache.h +++ b/net/http/http_cache.h @@ -129,6 +129,7 @@ class HttpCache : public HttpTransactionFactory { ActiveEntry* CreateEntry(const std::string& cache_key); void DestroyEntry(ActiveEntry* entry); int AddTransactionToEntry(ActiveEntry* entry, Transaction* trans); + void DoneWithEntry(ActiveEntry* entry, Transaction* trans); void DoneWritingToEntry(ActiveEntry* entry, bool success); void DoneReadingFromEntry(ActiveEntry* entry, Transaction* trans); void ConvertWriterToReader(ActiveEntry* entry); |