summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/mem_entry_impl.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 21:43:49 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-04 21:43:49 +0000
commita2068a61d67a2e90789e45a8073e631899bdeb9c (patch)
treeb8e80ea1d0cd464cd8422bb577161b7cad4d6edf /net/disk_cache/mem_entry_impl.h
parent9b72d9a51a5e32f2600c27a65b6598745714c2be (diff)
downloadchromium_src-a2068a61d67a2e90789e45a8073e631899bdeb9c.zip
chromium_src-a2068a61d67a2e90789e45a8073e631899bdeb9c.tar.gz
chromium_src-a2068a61d67a2e90789e45a8073e631899bdeb9c.tar.bz2
Disk cache: Interface for the sparse cache support.
This is just the interface declaration plus a mocked implementation of the interface. BUG=12258 TEST=none Review URL: http://codereview.chromium.org/119072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17669 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/mem_entry_impl.h')
-rw-r--r--net/disk_cache/mem_entry_impl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/disk_cache/mem_entry_impl.h b/net/disk_cache/mem_entry_impl.h
index 42fad96..65eb450 100644
--- a/net/disk_cache/mem_entry_impl.h
+++ b/net/disk_cache/mem_entry_impl.h
@@ -29,6 +29,11 @@ class MemEntryImpl : public Entry {
virtual int WriteData(int index, int offset, net::IOBuffer* buf, int buf_len,
net::CompletionCallback* completion_callback,
bool truncate);
+ virtual int ReadSparseData(int64 offset, net::IOBuffer* buf, int buf_len,
+ net::CompletionCallback* completion_callback);
+ virtual int WriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len,
+ net::CompletionCallback* completion_callback);
+ virtual int GetAvailableRange(int64 offset, int len, int64* start);
// Performs the initialization of a EntryImpl that will be added to the
// cache.