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

Unified Diff: net/disk_cache/mapped_file.h

Issue 18834003: Revert "Updating the mapped_file_avoid_mmap_posix implementation." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « net/disk_cache/disk_cache_test_util.cc ('k') | net/disk_cache/mapped_file_avoid_mmap_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/mapped_file.h
diff --git a/net/disk_cache/mapped_file.h b/net/disk_cache/mapped_file.h
index a60fca8aab1f812ee5db3ce2e078c684b03a8e2c..4649b90d1c928f23e954363ebf1d0ec00bf0b0e6 100644
--- a/net/disk_cache/mapped_file.h
+++ b/net/disk_cache/mapped_file.h
@@ -50,6 +50,9 @@ class NET_EXPORT_PRIVATE MappedFile : public File {
#endif
void* buffer_; // Address of the memory mapped buffer.
size_t view_size_; // Size of the memory pointed by buffer_.
+#if defined(POSIX_AVOID_MMAP)
+ void* snapshot_; // Copy of the buffer taken when it was last flushed.
+#endif
DISALLOW_COPY_AND_ASSIGN(MappedFile);
};
« no previous file with comments | « net/disk_cache/disk_cache_test_util.cc ('k') | net/disk_cache/mapped_file_avoid_mmap_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698