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

Unified Diff: webkit/fileapi/obfuscated_file_system_file_util.h

Issue 7489038: Merge 91814 - Do not create a new directory database for read operations. (Closed) Base URL: svn://svn.chromium.org/chrome/branches/782/src/
Patch Set: 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
Index: webkit/fileapi/obfuscated_file_system_file_util.h
===================================================================
--- webkit/fileapi/obfuscated_file_system_file_util.h (revision 93837)
+++ webkit/fileapi/obfuscated_file_system_file_util.h (working copy)
@@ -212,8 +212,11 @@
// 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') | webkit/fileapi/obfuscated_file_system_file_util.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698