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

Unified Diff: content/browser/indexed_db/indexed_db_backing_store.h

Issue 16409006: Don't delete leveldb directory if disk was full. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't assume disk is full if reading it failed Created 7 years, 6 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: content/browser/indexed_db/indexed_db_backing_store.h
diff --git a/content/browser/indexed_db/indexed_db_backing_store.h b/content/browser/indexed_db/indexed_db_backing_store.h
index 8fb5f721a909e7269a0ece363641d2525eb4ee3f..25b9557c8248533707673f7cefdb2e87eb591ba7 100644
--- a/content/browser/indexed_db/indexed_db_backing_store.h
+++ b/content/browser/indexed_db/indexed_db_backing_store.h
@@ -31,7 +31,8 @@ class LevelDBFactory {
virtual ~LevelDBFactory() {}
virtual scoped_ptr<LevelDBDatabase> OpenLevelDB(
const base::FilePath& file_name,
- const LevelDBComparator* comparator) = 0;
+ const LevelDBComparator* comparator,
+ bool* is_disk_full = 0) = 0;
jsbell 2013/06/07 17:48:41 NULL is preferred over 0.
dgrogan 2013/06/07 18:23:58 Done.
virtual bool DestroyLevelDB(const base::FilePath& file_name) = 0;
};

Powered by Google App Engine
This is Rietveld 408576698