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

Unified Diff: storage/browser/fileapi/sandbox_origin_database.h

Issue 1639973002: FileSystem: Prevent iterator from being deleted after database. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comments. Created 4 years, 11 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: storage/browser/fileapi/sandbox_origin_database.h
diff --git a/storage/browser/fileapi/sandbox_origin_database.h b/storage/browser/fileapi/sandbox_origin_database.h
index 0562385ebd6849e518dab8940479674772edb753..c1bd7a3646cc6b127dcc7b64eca01b8658e185e1 100644
--- a/storage/browser/fileapi/sandbox_origin_database.h
+++ b/storage/browser/fileapi/sandbox_origin_database.h
@@ -61,6 +61,8 @@ class STORAGE_EXPORT SandboxOriginDatabase
bool Init(InitOption init_option, RecoveryOption recovery_option);
bool RepairDatabase(const std::string& db_path);
+ // Close the database. Before this, all iterators associated with the database
+ // must be deleted.
void HandleError(const tracked_objects::Location& from_here,
const leveldb::Status& status);
void ReportInitStatus(const leveldb::Status& status);
« no previous file with comments | « storage/browser/fileapi/sandbox_directory_database.cc ('k') | storage/browser/fileapi/sandbox_origin_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698