summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/backend_impl.h
Commit message (Collapse)AuthorAgeFilesLines
* Reland re-organization of net/disk_cache/gavinp@chromium.org2014-03-031-400/+0
| | | | | | | | | | | | Originally this landed from https://codereview.chromium.org/121643003/ , but reverted due to an iOS build break. BUG=331062 TBR=mmenke@chromium.org,rvargas@chromium.org Review URL: https://codereview.chromium.org/185003007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@254474 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 253581 "Reorganize net/disk_cache into backend specific d..."gavinp@chromium.org2014-02-261-0/+400
| | | | | | | | | | | | | | | | | | | | | | | | > Reorganize net/disk_cache into backend specific directories. > > We want to unlink the blockfile cache on Android, and it seems that > we'll want more platforms with more varieties of backend in the > future. So let's move the backend into its own subdirectory as we > start to untangle the dependencies from tests/etc... into their > respective backends. > > This initial checkin isn't perfect; in particular the tests have a lot > of v2 specific dependencies still. > > R=rvargas@chromium.org, cbentzel, rvargas > BUG=331062 > > Review URL: https://codereview.chromium.org/121643003 TBR=gavinp@chromium.org Review URL: https://codereview.chromium.org/181503005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253598 0039d316-1c4b-4281-b951-d872f2087c98
* Reorganize net/disk_cache into backend specific directories.gavinp@chromium.org2014-02-261-400/+0
| | | | | | | | | | | | | | | | | | We want to unlink the blockfile cache on Android, and it seems that we'll want more platforms with more varieties of backend in the future. So let's move the backend into its own subdirectory as we start to untangle the dependencies from tests/etc... into their respective backends. This initial checkin isn't perfect; in particular the tests have a lot of v2 specific dependencies still. R=rvargas@chromium.org, cbentzel, rvargas BUG=331062 Review URL: https://codereview.chromium.org/121643003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253581 0039d316-1c4b-4281-b951-d872f2087c98
* Changed BackendImpl::SyncInit() so it creates timer onlyxeor@yandex-team.ru2013-12-181-0/+3
| | | | | | | | | | if the initialization is completed successfully. This should prevent the timer code from running if the object is only partially initialized. Review URL: https://codereview.chromium.org/98563004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241539 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Move PreferredCacheSize() to cache_util.hpasko@chromium.org2013-11-191-3/+0
| | | | | | | | BUG=173425 Review URL: https://codereview.chromium.org/50373004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236022 0039d316-1c4b-4281-b951-d872f2087c98
* Use a direct include of time headers in net/, part 1.avi@chromium.org2013-06-281-1/+1
| | | | | | | | | | BUG=254986 TEST=none TBR=ben@chromium.org Review URL: https://chromiumcodereview.appspot.com/18054009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@209110 0039d316-1c4b-4281-b951-d872f2087c98
* Rename base/hash_tables to base/containers/hash_tables.brettw@chromium.org2013-06-111-1/+1
| | | | | | | | | | | Remove forwarding header BUG= R=avi@chromium.org Review URL: https://codereview.chromium.org/16667019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205584 0039d316-1c4b-4281-b951-d872f2087c98
* Disk Cache: move common elements from v2 and v3 file format.rvargas@google.com2013-06-111-0/+2
| | | | | | | | | | | | | file_format_base.h now contains file format related definitions that are shared between versions 2 and 3 of the desktop cache. BUG=241277 TEST=none R=gavinp@chromium.org Review URL: https://codereview.chromium.org/16357022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205373 0039d316-1c4b-4281-b951-d872f2087c98
* Disk Cache: Make Stats independent of the backend implementation.rvargas@google.com2013-05-241-0/+3
| | | | | | | | | | | | | Stats is still dependent on block files, but now they don't call back into BackendImpl BUG=241277 TEST=none R=gavinp@chromium.org Review URL: https://codereview.chromium.org/15772003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201943 0039d316-1c4b-4281-b951-d872f2087c98
* Initialize the simple cache backend at runtime. pasko@google.com2013-04-021-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We will need to choose the backend at runtime for A/B testing. This change is the first step towards backend comparisons: it moves the logic of choosing among cache backends to a single point (cache_creator.cc) and makes it logically separate from BackendImpl. Next step would be to inject performance-analyzer backend into this cache backend choice logic. The analyzer is going to be under a compile-time flag. With this change the Simple Cache Backend operation gets enabled when the "SimpleCacheTrial" experiment is set. Cache Initialization. The Simple Cache Backend now shares the common initialization/cleanup code. So it can delete inconsistent cache, cache of a different version etc asynchronously. It is just a positive side-effect of moving the backend choice to a single point. The CacheCreator with almost no change. To see the difference: shell> out/Debug/chrome --enable-logging=stderr --v=1 \ --user-data-dir=/tmp/unique --use-simple-cache-backend=on \ http://url 2>&1 | grep "Simple Cache" BUG=173390, 173384 TBR=maruel Review URL: https://chromiumcodereview.appspot.com/12794003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191830 0039d316-1c4b-4281-b951-d872f2087c98
* Move file_path.h to base/files.brettw@chromium.org2013-02-241-1/+1
| | | | | | TBR=sky git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184344 0039d316-1c4b-4281-b951-d872f2087c98
* Remove bad const from disk_cache::Backend interface.gavinp@chromium.org2013-02-121-6/+6
| | | | | | | | | | | | | http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml#Use_of_const tells me not to use const where it's confusing. The instances of const removed by this CL are definitely confusing since they aren't even part of the interfaces they're written in. Worse yet, our Windows compiler gives errors if you override without matching them. This issue is upstream of https://codereview.chromium.org/12192005/ (Add simple cache backend), and must land before it so as to not break the windows build. R=rvargas@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/12207120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@182065 0039d316-1c4b-4281-b951-d872f2087c98
* Replace FilePath with base::FilePath in net.brettw@chromium.org2013-02-081-5/+5
| | | | | | Review URL: https://codereview.chromium.org/12218081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181543 0039d316-1c4b-4281-b951-d872f2087c98
* Add HttpCache histograms focussed on blocking and transaction type.gavinp@chromium.org2012-08-091-0/+1
| | | | | | | | | | | | | Most of our existing disk cache histograms focus on the speed of operations on the cache itself. This CL adds a bunch that break down http transactions by type, and track both time spent reading (either from disk cache or network), and time spent waiting for the disk cache to allow us to send the network request. Note that these patches are based on http://codereview.chromium.org/10797042/ , which must land first. R=rvargas@chromium.org, tburkhard@chromium.org BUG=None Review URL: https://chromiumcodereview.appspot.com/10808047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150902 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Always look for open entries when loadingrvargas@google.com2012-07-201-0/+4
| | | | | | | | | | a rankings node for a read only cache (AppCache) BUG=137959 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/10795040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@147672 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the rest of #pragma once in one big CL.ajwong@chromium.org2012-07-111-1/+0
| | | | | | | | | For context see this thread: https://groups.google.com/a/chromium.org/forum/?fromgroups#!topic/chromium-dev/RMcVNGjB4II TBR=thakis,pkasting,jam git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146163 0039d316-1c4b-4281-b951-d872f2087c98
* Optionally disable mmap() in the disk cache.husky@chromium.org2012-06-261-0/+3
| | | | | | | | | | | | | | | | | | | | | The disk cache mmaps the headers of certain important files (the main index file, plus block files). Unfortunately on some Android devices mmap performs badly on flash storage, and it's actually better to write the data manually. This patch adds the macro USE_MMAP_FOR_DISK_CACHE macro and the method disk_cache::MappedFile::FlushHeader(). By default, the macro is defined, the new method is a no-op, and there's no change in behavior. TEST=DiskCacheTest BUG= Review URL: https://chromiumcodereview.appspot.com/10573032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@144166 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Remove per-size-group histograms and a few stale ones.rvargas@google.com2012-04-181-3/+0
| | | | | | | | BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/10116006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132879 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 129018 - Revert 128993 - Refactor BaseTimer to avoid spamming the ↵jbates@chromium.org2012-03-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MessageLoop with orphaned tasks. This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667,119714,119750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128412 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=128506 Review URL: https://chromiumcodereview.appspot.com/9655006 TBR=jbates@chromium.org Review URL: https://chromiumcodereview.appspot.com/9791009 TBR=aa@chromium.org Review URL: https://chromiumcodereview.appspot.com/9860014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129062 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 128993 - Refactor BaseTimer to avoid spamming the MessageLoop with ↵aa@chromium.org2012-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | orphaned tasks. This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667,119714,119750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128412 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=128506 Review URL: https://chromiumcodereview.appspot.com/9655006 TBR=jbates@chromium.org Review URL: https://chromiumcodereview.appspot.com/9791009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@129018 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BaseTimer to avoid spamming the MessageLoop with orphaned tasks.jbates@chromium.org2012-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667,119714,119750 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=128412 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=128506 Review URL: https://chromiumcodereview.appspot.com/9655006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128993 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Refactor BaseTimer to avoid spamming the MessageLoop with orphaned ↵rnk@chromium.org2012-03-231-1/+1
| | | | | | | | | | | | | | tasks." This reverts commit r128412, which is causing DCHECKs in thread destruction in media unittests. BUG=119714,119750 TBR=sky@chromium.org,petermayo@chromium.org Review URL: https://chromiumcodereview.appspot.com/9839059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128506 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor BaseTimer to avoid spamming the MessageLoop with orphaned tasks.jbates@chromium.org2012-03-231-1/+1
| | | | | | | | | | | | | | | | This change maintains the same API promises*, but instead of orphaning tasks when they are stopped, the BaseTimer_Helper class holds on to the task until either (1) it expires or (2) the user requests a delay that would arrive earlier than the pending task. If the user requests a longer delay than the pending task, a followup task will be posted when the pending task fires to span the remaining time. * The one change of usage is related to threading. The threading requirements are now more strict. It is not allowed to destruct a timer on a different thread than the one used to post tasks. A thread ID DCHECK is now in place that will help catch misuse. Some existing instances are changed as part of this CL. A side effect of this change is that the BaseTimer and DelayTimer are simplified to use features of BaseTimer_Helper (which is now called Timer). As suggested in timer.h, I ran the disabled TimerTest tests from linux, and they pass consistently. I also added some new tests to verify correct run states. BUG=117451,103667 Review URL: http://codereview.chromium.org/9655006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128412 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Fix style and extra net:: specification.rvargas@google.com2012-03-231-17/+15
| | | | | | | | | | No real code change. BUG=none TEST=none Review URL: https://chromiumcodereview.appspot.com/9812031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128364 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Remove all non essential synchronization from thervargas@google.com2012-03-201-4/+3
| | | | | | | | | | | | | | | | | | cache destructor. The default setting for unit tests is still to perform full synchronization so we make sure that all work is performed, and that there are no leaks. However, when not running unit tests, all in progress operations are simply dropped on the flor, so they should result in dirty entries for the next run. BUG=74623 TEST=net_unittests Review URL: https://chromiumcodereview.appspot.com/9702059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127826 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: disk_cache_test_base.(cc|h)tbreisacher@chromium.org2011-12-221-1/+2
| | | | | | | | | | | BUG=NONE TEST=NONE TBR= rtenneti@chromium.org Review URL: http://codereview.chromium.org/9019036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115516 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert most of disk_cache.jhawkins@chromium.org2011-12-191-8/+9
| | | | | | | | | | BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8963030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115019 0039d316-1c4b-4281-b951-d872f2087c98
* Reland after fixes.jhawkins@chromium.org2011-12-171-2/+2
| | | | | | | | | | | | base::Bind: Remove even moar OldCompletionCallback. BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8947024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114896 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 114838 - base::Bind: Remove even moar OldCompletionCallback.garykac@chromium.org2011-12-161-2/+2
| | | | | | | | | | | | | BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8947024 TBR=jhawkins@chromium.org Review URL: http://codereview.chromium.org/8966031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114840 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Remove even moar OldCompletionCallback.jhawkins@chromium.org2011-12-161-2/+2
| | | | | | | | | | BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8947024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114838 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Cleanup almost-unused OldCompletionCallbacks.jhawkins@chromium.org2011-12-151-17/+11
| | | | | | | | | | BUG=none TEST=none R=dpapad Review URL: http://codereview.chromium.org/8956014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114674 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r113263 rebased after revert of r113249.jhawkins@chromium.org2011-12-121-0/+2
| | | | | | | | | | | | base::Bind: Convert chrome_benchmarking_message_filter.cc. BUG=none TEST=none R=csilv,ajwong Review URL: http://codereview.chromium.org/8897026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114072 0039d316-1c4b-4281-b951-d872f2087c98
* Reland r113261 rebased after revert of r113249.jhawkins@chromium.org2011-12-121-0/+5
| | | | | | | | | | | | base::Bind: Convert browsing_data_remover.h. BUG=none TEST=none R=csilv,ajwong Review URL: http://codereview.chromium.org/8896024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114052 0039d316-1c4b-4281-b951-d872f2087c98
* Reverts a commit that caused ASAN failures, and 2 dependent commits.joi@chromium.org2011-12-071-12/+1
| | | | | | | | | | | | | The primary commit was 113249, the dependents were 113261, 113263. This is a speculative revert, r113249 is by far the likeliest culprit in the blamelist of build http://build.chromium.org/p/chromium.memory/builders/ASAN%20Tests%20%282%29/builds/2325 which is where we started seeing the ASAN failures in question, will un-revert if it does not fix the problem. TBR=jhawkins@chromium.org BUG=none Review URL: http://codereview.chromium.org/8832006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113387 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert chrome_benchmarking_message_filter.cc.jhawkins@chromium.org2011-12-061-0/+2
| | | | | | | | | | BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8792006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113263 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert browsing_data_remover.jhawkins@chromium.org2011-12-061-0/+5
| | | | | | | | | | BUG=none TEST=none R=csilv Review URL: http://codereview.chromium.org/8798001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113261 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind: Convert disk_cache_based_ssl_host_info.jhawkins@chromium.org2011-12-061-1/+5
| | | | | | | | | | | BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/8794003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113249 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to net/.avi@chromium.org2011-11-161-11/+12
| | | | | | | | BUG=104314 Review URL: http://codereview.chromium.org/8568021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110231 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Make sure that we don't keep looping tryingrvargas@google.com2011-10-261-1/+1
| | | | | | | | | | | | | | to evict entries from the cache. Also, consider the number of requests and returned data when deciding if the cache is under load, and not just the number of pending operations. BUG=68894 TEST=none Review URL: http://codereview.chromium.org/8392020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107425 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Update stress_cache to perform deeper testsing.rvargas@google.com2011-10-201-0/+9
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/8352013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106538 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind conversion for net/disk_cache/...adamk@chromium.org2011-10-201-1/+0
| | | | | | | | | R=willchan@chromium.org Review URL: http://codereview.chromium.org/8353019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106415 0039d316-1c4b-4281-b951-d872f2087c98
* Begin CompletionCallback switchover.willchan@chromium.org2011-10-011-12/+12
| | | | | | | | | | | | | Rename CompletionCallback to OldCompletionCallback in preparation for introducing a new CompletionCallback based on base::Callback. Also renames other CompletionCallback types like CancelableCompletionCallback and TestCompletionCallback and CompletionCallbackImpl. All using sed with s/CompletionCallback/OldCompletionCallback/g. BUG=98719 TEST=none Review URL: http://codereview.chromium.org/8070013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103650 0039d316-1c4b-4281-b951-d872f2087c98
* Disk Cache: Improve handling of dirty entries.rvargas@google.com2011-09-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | * Split the entry sanity checks in two parts: a critical one and a non-critical one. This allows us to return dirty entries instead of failing to open them. * Make sure that we cannot reach an entry through the index before the actual data reaches the disk (when creating an entry linked through a parent we were not respecting that). * When deleting a block from a block file, first clean it up and then update the map (avoid leaving a dirty free block if there is a crash) * Handle the case of errors when opening entries through the enumerations path. BUG=73102 TEST=net_unittests Review URL: http://codereview.chromium.org/8065015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103323 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: Don't evict anything for the first fivervargas@google.com2011-08-311-1/+1
| | | | | | | | | | | minutes. Basically, we don't want to do anything that may slow down startup. BUG=none TEST=none Review URL: http://codereview.chromium.org/7765006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99059 0039d316-1c4b-4281-b951-d872f2087c98
* Rename NET_API to NET_EXPORT, and rename NET_TEST to NET_EXPORT_PRIVATE.darin@chromium.org2011-08-121-2/+2
| | | | | | Review URL: http://codereview.chromium.org/7529043 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@96560 0039d316-1c4b-4281-b951-d872f2087c98
* Inform disk cache of WebKit memory cache hits.simonjam@chromium.org2011-08-021-0/+2
| | | | | | | | | | BUG=37112 TEST=net_unittests Review URL: http://codereview.chromium.org/7461106 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95145 0039d316-1c4b-4281-b951-d872f2087c98
* Virtual destructors should have virtual keyword.hans@chromium.org2011-05-251-1/+1
| | | | | | | | | | | | | | | | | Make sure user-declared virtual destructors always have the virtual keyword. The Clang style-check plugin will check for this soon. No functionality change: virtual is only added to destructors that are already implicitly virtual. Also fix a couple of in-line destructor definitions. BUG=83408 TEST=none Review URL: http://codereview.chromium.org/7064033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86587 0039d316-1c4b-4281-b951-d872f2087c98
* disk cache: Add NET_API for net.dllrvargas@google.com2011-05-071-3/+3
| | | | | | | | BUG=76997 TEST=NONE Review URL: http://codereview.chromium.org/6933045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84532 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: End the throttling experiment and removervargas@google.com2011-03-031-6/+0
| | | | | | | | | | | the throttling queue BUG=54338 TEST=none Review URL: http://codereview.chromium.org/6602073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76830 0039d316-1c4b-4281-b951-d872f2087c98
* Disk cache: More fixes to avoid corruption.rvargas@google.com2011-02-231-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | * We now keep dirty entries in the map of open entries so that we handle better crashes when we are working with dirty entries. * EntryImpl now remembers if the entry was dirty on disk. * When we find a dirty entry while doing enumerations we now go through the regular path to delete the entry (InternalDoomEntry), and let MatchEntry delete the entry. The main problem with the old code is that it was possible to delete the entry without first removing it from the index, so a crash at that time would leave references to free addresses. * Now we correctly consider the case of not finding an entry when looking for its parent as an error. BUG=62085 TEST=net_unittests Review URL: http://codereview.chromium.org/6538006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75685 0039d316-1c4b-4281-b951-d872f2087c98