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

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: Reworded comment 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..f0efa41ed77fd4dcfaf1b1050d1352068132f770 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 system cache and make sure the file is fully
+ // readable (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