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

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

Issue 145693005: [FileAPI] Replace default leveldb::Env with leveldb::MemEnv in tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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: webkit/browser/fileapi/sandbox_origin_database.h
diff --git a/webkit/browser/fileapi/sandbox_origin_database.h b/webkit/browser/fileapi/sandbox_origin_database.h
index dd3b32c95c3ebde71dc3fbf5793840ab42086885..57d2e8415ab356dc0e113079eb72ee3bf705cfb2 100644
--- a/webkit/browser/fileapi/sandbox_origin_database.h
+++ b/webkit/browser/fileapi/sandbox_origin_database.h
@@ -14,6 +14,7 @@
namespace leveldb {
class DB;
+class Env;
class Status;
}
@@ -30,7 +31,8 @@ class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE SandboxOriginDatabase
public:
// Only one instance of SandboxOriginDatabase should exist for a given path
// at a given time.
- explicit SandboxOriginDatabase(const base::FilePath& file_system_directory);
+ SandboxOriginDatabase(const base::FilePath& file_system_directory,
+ leveldb::Env* env_override);
virtual ~SandboxOriginDatabase();
// SandboxOriginDatabaseInterface overrides.
@@ -64,6 +66,7 @@ class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE SandboxOriginDatabase
bool GetLastPathNumber(int* number);
base::FilePath file_system_directory_;
+ leveldb::Env* env_override_;
scoped_ptr<leveldb::DB> db_;
base::Time last_reported_time_;
DISALLOW_COPY_AND_ASSIGN(SandboxOriginDatabase);
« no previous file with comments | « webkit/browser/fileapi/sandbox_file_system_backend_delegate.cc ('k') | webkit/browser/fileapi/sandbox_origin_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698