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

Unified Diff: net/disk_cache/blockfile/mapped_file.h

Issue 206453003: Move Preload() code to MappedFile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Just keeping the code cleanup. Created 6 years, 9 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/blockfile/block_files.cc ('k') | net/disk_cache/blockfile/mapped_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/mapped_file.h
diff --git a/net/disk_cache/blockfile/mapped_file.h b/net/disk_cache/blockfile/mapped_file.h
index 8a1e40fa6ce961e46e63a7badbb901c64ad3b556..368769e0ee483e379b091d77b095afadcac1a7bd 100644
--- a/net/disk_cache/blockfile/mapped_file.h
+++ b/net/disk_cache/blockfile/mapped_file.h
@@ -46,6 +46,10 @@ class NET_EXPORT_PRIVATE MappedFile : public File {
// Flush the memory-mapped section to disk (synchronously).
void Flush();
+ // Heats up the file cache and make sure the file is fully readable
rvargas (doing something else) 2014/03/31 22:50:11 nit: file cache -> file system cache
+ // (synchronously).
+ bool Preload();
+
private:
virtual ~MappedFile();
« no previous file with comments | « net/disk_cache/blockfile/block_files.cc ('k') | net/disk_cache/blockfile/mapped_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698