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

Unified Diff: net/disk_cache/simple/simple_entry_impl.h

Issue 2807433002: SimpleCache: synchronously reply on reads from idle if data is in memory.
Patch Set: Experimental: upload a bit of an alternative approach for discussion Created 3 years, 8 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/simple/simple_entry_impl.h
diff --git a/net/disk_cache/simple/simple_entry_impl.h b/net/disk_cache/simple/simple_entry_impl.h
index 1484fadcefb4af482c12e27ed14fcc828c6e5141..15ea791521b384ec4e4d20105f95f6e0924058d2 100644
--- a/net/disk_cache/simple/simple_entry_impl.h
+++ b/net/disk_cache/simple/simple_entry_impl.h
@@ -192,11 +192,12 @@ class NET_EXPORT_PRIVATE SimpleEntryImpl : public Entry,
void CloseInternal();
- void ReadDataInternal(int index,
- int offset,
- net::IOBuffer* buf,
- int buf_len,
- const CompletionCallback& callback);
+ int ReadDataInternal(bool try_sync,
+ int index,
+ int offset,
+ net::IOBuffer* buf,
+ int buf_len,
+ const CompletionCallback& callback);
void WriteDataInternal(int index,
int offset,

Powered by Google App Engine
This is Rietveld 408576698