SimpleCache: Track mass dooms as pending dooms.
commit4a7b64d42d9071ffcbe9b13ed735f7736b2a1615
authorgavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 21 Sep 2013 01:44:37 +0000 (21 01:44 +0000)
committergavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 21 Sep 2013 01:44:37 +0000 (21 01:44 +0000)
tree8a7a7a3dbb5935ae42b40cec5258295be19c66d2
parent8355b7629254490bf8aa89d9fd5779f4559ac168
SimpleCache: Track mass dooms as pending dooms.

By placing entries being doomed in mass dooms into
entries_pending_doom_, we avoid racing operations on individual
entries with mass operations.

R=pliard@chromium.org, rdsmith@chromium.org, pasko, rdsmith, ttuttle
BUG=289542,294186

Review URL: https://codereview.chromium.org/23437030

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224543 0039d316-1c4b-4281-b951-d872f2087c98
13 files changed:
net/disk_cache/backend_unittest.cc
net/disk_cache/simple/simple_backend_impl.cc
net/disk_cache/simple/simple_backend_impl.h
net/disk_cache/simple/simple_entry_impl.cc
net/disk_cache/simple/simple_index.cc
net/disk_cache/simple/simple_index.h
net/disk_cache/simple/simple_index_delegate.h [new file with mode: 0644]
net/disk_cache/simple/simple_index_file.cc
net/disk_cache/simple/simple_index_file.h
net/disk_cache/simple/simple_index_unittest.cc
net/disk_cache/simple/simple_synchronous_entry.cc
net/disk_cache/simple/simple_synchronous_entry.h
net/net.gyp