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

Unified Diff: net/http/http_cache_unittest.cc

Issue 2869005: Disk Cache: Remove deprecated methods from the disk cache interface.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 months 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/stress_cache.cc ('k') | net/tools/dump_cache/cache_dumper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_cache_unittest.cc
===================================================================
--- net/http/http_cache_unittest.cc (revision 49603)
+++ net/http/http_cache_unittest.cc (working copy)
@@ -215,11 +215,6 @@
return net::ERR_IO_PENDING;
}
- virtual int GetAvailableRange(int64 offset, int len, int64* start) {
- NOTREACHED();
- return net::ERR_NOT_IMPLEMENTED;
- }
-
virtual int GetAvailableRange(int64 offset, int len, int64* start,
net::CompletionCallback* callback) {
DCHECK(callback);
@@ -383,11 +378,6 @@
return static_cast<int32>(entries_.size());
}
- virtual bool OpenEntry(const std::string& key, disk_cache::Entry** entry) {
- NOTREACHED();
- return false;
- }
-
virtual int OpenEntry(const std::string& key, disk_cache::Entry** entry,
net::CompletionCallback* callback) {
DCHECK(callback);
@@ -419,11 +409,6 @@
return net::ERR_IO_PENDING;
}
- virtual bool CreateEntry(const std::string& key, disk_cache::Entry** entry) {
- NOTREACHED();
- return false;
- }
-
virtual int CreateEntry(const std::string& key, disk_cache::Entry** entry,
net::CompletionCallback* callback) {
DCHECK(callback);
@@ -457,11 +442,6 @@
return net::ERR_IO_PENDING;
}
- virtual bool DoomEntry(const std::string& key) {
- NOTREACHED();
- return false;
- }
-
virtual int DoomEntry(const std::string& key,
net::CompletionCallback* callback) {
DCHECK(callback);
@@ -478,42 +458,21 @@
return net::ERR_IO_PENDING;
}
- virtual bool DoomAllEntries() {
- NOTREACHED();
- return false;
- }
-
virtual int DoomAllEntries(net::CompletionCallback* callback) {
return net::ERR_NOT_IMPLEMENTED;
}
- virtual bool DoomEntriesBetween(const Time initial_time,
- const Time end_time) {
- NOTREACHED();
- return false;
- }
-
virtual int DoomEntriesBetween(const base::Time initial_time,
const base::Time end_time,
net::CompletionCallback* callback) {
return net::ERR_NOT_IMPLEMENTED;
}
- virtual bool DoomEntriesSince(const Time initial_time) {
- NOTREACHED();
- return false;
- }
-
virtual int DoomEntriesSince(const base::Time initial_time,
net::CompletionCallback* callback) {
return net::ERR_NOT_IMPLEMENTED;
}
- virtual bool OpenNextEntry(void** iter, disk_cache::Entry** next_entry) {
- NOTREACHED();
- return false;
- }
-
virtual int OpenNextEntry(void** iter, disk_cache::Entry** next_entry,
net::CompletionCallback* callback) {
return net::ERR_NOT_IMPLEMENTED;
« no previous file with comments | « net/disk_cache/stress_cache.cc ('k') | net/tools/dump_cache/cache_dumper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698