summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/entry_impl.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-17 01:03:10 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-17 01:03:10 +0000
commit2a5ee419abd76128acb21d5395393e3d70c17ae3 (patch)
treea5687fbbce310542b6641811cba7c7b4d99373ce /net/disk_cache/entry_impl.cc
parent2bd930265ee663668e49d41eb35fddd94934eae2 (diff)
downloadchromium_src-2a5ee419abd76128acb21d5395393e3d70c17ae3.zip
chromium_src-2a5ee419abd76128acb21d5395393e3d70c17ae3.tar.gz
chromium_src-2a5ee419abd76128acb21d5395393e3d70c17ae3.tar.bz2
Disk cache: Final code cleanup from the thread switch.
No code change. BUG=26730 TEST=none Review URL: http://codereview.chromium.org/3005006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52792 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/entry_impl.cc')
-rw-r--r--net/disk_cache/entry_impl.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/net/disk_cache/entry_impl.cc b/net/disk_cache/entry_impl.cc
index c0e7270..a017549 100644
--- a/net/disk_cache/entry_impl.cc
+++ b/net/disk_cache/entry_impl.cc
@@ -241,14 +241,6 @@ int EntryImpl::WriteSparseData(int64 offset, net::IOBuffer* buf, int buf_len,
return net::ERR_IO_PENDING;
}
-int EntryImpl::GetAvailableRangeImpl(int64 offset, int len, int64* start) {
- int result = InitSparseData();
- if (net::OK != result)
- return result;
-
- return sparse_->GetAvailableRange(offset, len, start);
-}
-
int EntryImpl::GetAvailableRange(int64 offset, int len, int64* start,
CompletionCallback* callback) {
backend_->background_queue()->GetAvailableRange(this, offset, len, start,
@@ -479,6 +471,14 @@ int EntryImpl::WriteSparseDataImpl(int64 offset, net::IOBuffer* buf,
return result;
}
+int EntryImpl::GetAvailableRangeImpl(int64 offset, int len, int64* start) {
+ int result = InitSparseData();
+ if (net::OK != result)
+ return result;
+
+ return sparse_->GetAvailableRange(offset, len, start);
+}
+
void EntryImpl::CancelSparseIOImpl() {
if (!sparse_.get())
return;