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

Unified Diff: net/disk_cache/file.h

Issue 15203004: Disk cache: Reference CL for the implementation of file format version 3. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: IndexTable review Created 7 years, 1 month 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/eviction.cc ('k') | net/disk_cache/file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/file.h
===================================================================
--- net/disk_cache/file.h (revision 199883)
+++ net/disk_cache/file.h (working copy)
@@ -67,6 +67,8 @@
bool SetLength(size_t length);
size_t GetLength();
+ void set_force_creation() { force_creation_ = true; }
+
// Blocks until |num_pending_io| IO operations complete.
static void WaitForPendingIO(int* num_pending_io);
@@ -84,6 +86,7 @@
private:
bool init_;
bool mixed_;
+ bool force_creation_;
base::PlatformFile platform_file_; // Regular, asynchronous IO handle.
base::PlatformFile sync_platform_file_; // Synchronous IO handle.
« no previous file with comments | « net/disk_cache/eviction.cc ('k') | net/disk_cache/file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698