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

Unified Diff: webkit/browser/fileapi/file_system_options.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
« no previous file with comments | « content/public/test/test_file_system_options.cc ('k') | webkit/browser/fileapi/file_system_options.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/file_system_options.h
diff --git a/webkit/browser/fileapi/file_system_options.h b/webkit/browser/fileapi/file_system_options.h
index b6e78efce61dadd27d210a8fb258402496c3eafc..25133dac21ce3349ab08e5f619323bbf3db4feea 100644
--- a/webkit/browser/fileapi/file_system_options.h
+++ b/webkit/browser/fileapi/file_system_options.h
@@ -10,6 +10,10 @@
#include "webkit/browser/webkit_storage_browser_export.h"
+namespace leveldb {
+class Env;
+}
+
namespace fileapi {
// Provides runtime options that may change FileSystem API behavior.
@@ -26,9 +30,11 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemOptions {
// (PROFILE_MODE_NORMAL).
// |additional_allowed_schemes| specifies schemes that are allowed
// to access FileSystem API in addition to "http" and "https".
+ // Non-NULL |env_override| overrides internal LevelDB environment.
FileSystemOptions(
ProfileMode profile_mode,
- const std::vector<std::string>& additional_allowed_schemes);
+ const std::vector<std::string>& additional_allowed_schemes,
+ leveldb::Env* env_override);
~FileSystemOptions();
@@ -43,9 +49,12 @@ class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemOptions {
return additional_allowed_schemes_;
}
+ leveldb::Env* env_override() const { return env_override_; }
+
private:
const ProfileMode profile_mode_;
const std::vector<std::string> additional_allowed_schemes_;
+ leveldb::Env* env_override_;
};
} // namespace fileapi
« no previous file with comments | « content/public/test/test_file_system_options.cc ('k') | webkit/browser/fileapi/file_system_options.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698