diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 17:32:40 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-29 17:32:40 +0000 |
commit | 9cb851f3e229cf290497c040d2fef79f59bcaf14 (patch) | |
tree | fa1ffa3b6321e12ffbf337240d00f194532fc664 /net/disk_cache/backend_impl.h | |
parent | b57286fc2f87bc9da060db89c23c1c7f413fe52e (diff) | |
download | chromium_src-9cb851f3e229cf290497c040d2fef79f59bcaf14.zip chromium_src-9cb851f3e229cf290497c040d2fef79f59bcaf14.tar.gz chromium_src-9cb851f3e229cf290497c040d2fef79f59bcaf14.tar.bz2 |
Disk cache: Handle failures growing the user_buffer that
should result in data going to an external file.
After PrepareBuffer() we must always have either a buffer
that will receive the user data, or an initialized address
that points to the correct block or external file to
receive the data.
This CL makes sure that when we end up without a buffer, the
second condition is met.
BUG=56872
TEST=net_unittests
Review URL: http://codereview.chromium.org/3471016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/backend_impl.h')
-rw-r--r-- | net/disk_cache/backend_impl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/disk_cache/backend_impl.h b/net/disk_cache/backend_impl.h index c4a1bab..a8880d1 100644 --- a/net/disk_cache/backend_impl.h +++ b/net/disk_cache/backend_impl.h @@ -29,7 +29,8 @@ enum BackendFlags { kUpgradeMode = 1 << 3, // This is the upgrade tool (dump). kNewEviction = 1 << 4, // Use of new eviction was specified. kNoRandom = 1 << 5, // Don't add randomness to the behavior. - kNoLoadProtection = 1 << 6 // Don't act conservatively under load. + kNoLoadProtection = 1 << 6, // Don't act conservatively under load. + kNoBuffering = 1 << 7 // Disable extended IO buffering. }; // This class implements the Backend interface. An object of this |