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

Unified Diff: net/disk_cache/in_flight_backend_io.h

Issue 7461106: Inform disk cache of WebKit memory cache hits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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
Index: net/disk_cache/in_flight_backend_io.h
diff --git a/net/disk_cache/in_flight_backend_io.h b/net/disk_cache/in_flight_backend_io.h
index 659a33af15ff352b3b01330b77902ad69b82afb2..09ee323a073bf0925b91c6ba54ab0c7e9dfbec22 100644
--- a/net/disk_cache/in_flight_backend_io.h
+++ b/net/disk_cache/in_flight_backend_io.h
@@ -70,6 +70,7 @@ class BackendIO : public BackgroundIO {
void GetAvailableRange(EntryImpl* entry, int64 offset, int len, int64* start);
void CancelSparseIO(EntryImpl* entry);
void ReadyForSparseIO(EntryImpl* entry);
+ void UpdateRankForExternalCacheHit(EntryImpl* entry);
private:
// There are two types of operations to proxy: regular backend operations are
@@ -100,7 +101,8 @@ class BackendIO : public BackgroundIO {
OP_WRITE_SPARSE,
OP_GET_RANGE,
OP_CANCEL_IO,
- OP_IS_READY
+ OP_IS_READY,
+ OP_UPDATE_RANK,
};
virtual ~BackendIO();
@@ -175,6 +177,7 @@ class InFlightBackendIO : public InFlightIO {
net::CompletionCallback* callback);
void CancelSparseIO(EntryImpl* entry);
void ReadyForSparseIO(EntryImpl* entry, net::CompletionCallback* callback);
+ void UpdateRankForExternalCacheHit(EntryImpl* entry);
// Blocks until all operations are cancelled or completed.
void WaitForPendingIO();

Powered by Google App Engine
This is Rietveld 408576698