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

Unified Diff: webkit/fileapi/obfuscated_file_system_file_util.h

Issue 7307013: Do not create a new directory database for read operations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: return true for DirectoryExists Created 9 years, 5 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 | « no previous file | webkit/fileapi/obfuscated_file_system_file_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/obfuscated_file_system_file_util.h
diff --git a/webkit/fileapi/obfuscated_file_system_file_util.h b/webkit/fileapi/obfuscated_file_system_file_util.h
index 88caa65c555df57b790b1c00421f353590a12607..6e1d01c12eea5e9117098aeda842d16a8b37903e 100644
--- a/webkit/fileapi/obfuscated_file_system_file_util.h
+++ b/webkit/fileapi/obfuscated_file_system_file_util.h
@@ -48,7 +48,7 @@ class ObfuscatedFileSystemFileUtil : public FileSystemFileUtil,
public base::RefCountedThreadSafe<ObfuscatedFileSystemFileUtil> {
public:
- ObfuscatedFileSystemFileUtil(const FilePath& file_system_directory);
+ explicit ObfuscatedFileSystemFileUtil(const FilePath& file_system_directory);
virtual ~ObfuscatedFileSystemFileUtil();
virtual base::PlatformFileError CreateOrOpen(
@@ -212,8 +212,11 @@ class ObfuscatedFileSystemFileUtil : public FileSystemFileUtil,
// This does the reverse of DataPathToLocalPath.
FilePath LocalPathToDataPath(
const GURL& origin, FileSystemType type, const FilePath& local_path);
+ // This returns NULL if |create| flag is false and a filesystem does not
+ // exist for the given |origin_url| and |type|.
+ // For read operations |create| should be false.
FileSystemDirectoryDatabase* GetDirectoryDatabase(
- const GURL& origin_url, FileSystemType type);
+ const GURL& origin_url, FileSystemType type, bool create);
void MarkUsed();
void DropDatabases();
bool DestroyDirectoryDatabase(const GURL& origin, FileSystemType type);
« no previous file with comments | « no previous file | webkit/fileapi/obfuscated_file_system_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698