Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Unified Diff: net/disk_cache/flash/storage.cc

Issue 11316178: Added CacheEntry implementation. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added destructor for Stream struct. Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/flash/format.h ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/flash/storage.cc
diff --git a/net/disk_cache/flash/storage.cc b/net/disk_cache/flash/storage.cc
index 24c2774174355c2869b5cb961d27264fa0c787f3..b6af0fe5f925db40ae27ff36c986ca8e1df4fa74 100644
--- a/net/disk_cache/flash/storage.cc
+++ b/net/disk_cache/flash/storage.cc
@@ -43,7 +43,6 @@ Storage::~Storage() {
}
bool Storage::Read(void* buffer, int32 size, int32 offset) {
- DCHECK(buffer);
DCHECK(offset >= 0 && offset + size <= size_);
int rv = base::ReadPlatformFile(file_, offset, static_cast<char*>(buffer),
@@ -52,7 +51,6 @@ bool Storage::Read(void* buffer, int32 size, int32 offset) {
}
bool Storage::Write(const void* buffer, int32 size, int32 offset) {
- DCHECK(buffer);
DCHECK(offset >= 0 && offset + size <= size_);
int rv = base::WritePlatformFile(file_, offset,
« no previous file with comments | « net/disk_cache/flash/format.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698