summaryrefslogtreecommitdiffstats
path: root/net/net.gyp
diff options
context:
space:
mode:
authorgavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-25 22:01:33 +0000
committergavinp@chromium.org <gavinp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-25 22:01:33 +0000
commit431476af95d57168f8a6e1a747eabf5d631d9946 (patch)
tree82d0dddf95dfba1ba85d524f3e984d474a961410 /net/net.gyp
parentb12a2fece633f85b8cd2079077c2e181daff30c2 (diff)
downloadchromium_src-431476af95d57168f8a6e1a747eabf5d631d9946.zip
chromium_src-431476af95d57168f8a6e1a747eabf5d631d9946.tar.gz
chromium_src-431476af95d57168f8a6e1a747eabf5d631d9946.tar.bz2
Add new simple disk cache backend.
Introducing the simple backend that stores one disk_cache entry per file. At this point, entries can be created, doomed, and basic caching appears to work. It is asynchronous, performing all IO operations on a worker pool. It's careful enough about lifetime that it should be possible to delete quickly, without error or races. It's missing many features of a real disk cache. Most notably, it can't detect corruption, it does not have any kind of IO thread bitmap/hashes to allow fast responses, and it does not have eviction at all. This issue is downstream of https://codereview.chromium.org/12207120/ (remove bad const from disk cache interfaces), which must land before it. It is upstream of https://codereview.chromium.org/12226095/ (Make synchronous methods reentrant), and must land before that issue. R=rvargas@chromium.org,pasko@chromium.org BUG=173388,173390 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=182845 Review URL: https://codereview.chromium.org/12192005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@184493 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/net.gyp')
-rw-r--r--net/net.gyp13
1 files changed, 13 insertions, 0 deletions
diff --git a/net/net.gyp b/net/net.gyp
index fe2b734..33c0383 100644
--- a/net/net.gyp
+++ b/net/net.gyp
@@ -7,6 +7,7 @@
'chromium_code': 1,
'linux_link_kerberos%': 0,
+ 'use_simple_cache_backend%': 0,
'conditions': [
['chromeos==1 or OS=="android" or OS=="ios"', {
# Disable Kerberos on ChromeOS, Android and iOS, at least for now.
@@ -415,6 +416,13 @@
'disk_cache/stress_support.h',
'disk_cache/trace.cc',
'disk_cache/trace.h',
+ 'disk_cache/simple/simple_backend_impl.cc',
+ 'disk_cache/simple/simple_backend_impl.h',
+ 'disk_cache/simple/simple_disk_format.h',
+ 'disk_cache/simple/simple_entry_impl.cc',
+ 'disk_cache/simple/simple_entry_impl.h',
+ 'disk_cache/simple/simple_synchronous_entry.cc',
+ 'disk_cache/simple/simple_synchronous_entry.h',
'disk_cache/flash/format.h',
'disk_cache/flash/log_store.cc',
'disk_cache/flash/log_store.h',
@@ -1048,6 +1056,11 @@
'dns/dns_client.cc',
],
}],
+ ['use_simple_cache_backend==1', {
+ 'defines': [
+ 'USE_SIMPLE_CACHE_BACKEND',
+ ]
+ }],
['use_openssl==1', {
'sources!': [
'base/cert_database_nss.cc',