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

Unified Diff: webkit/fileapi/file_system_util.h

Issue 9016020: Cleanup FileSystemOperation for preparing for adding FSO-factory method (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 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 | « webkit/fileapi/file_system_url_request_job_unittest.cc ('k') | webkit/fileapi/file_system_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_util.h
diff --git a/webkit/fileapi/file_system_util.h b/webkit/fileapi/file_system_util.h
index 00dfd6caf32840fb2b431b9d0e4006b9b50e121a..fff7794cb961243ba33c3471c6c0838d4889eb5e 100644
--- a/webkit/fileapi/file_system_util.h
+++ b/webkit/fileapi/file_system_util.h
@@ -35,7 +35,18 @@ bool CrackFileSystemURL(const GURL& url,
// |origin_url| and |type|. The returned URI can be used as a root path
// of the filesystem (e.g. <returned_URI> + "/relative/path" will compose
// a path pointing to the entry "/relative/path" in the filesystem).
-GURL GetFileSystemRootURI(const GURL& origin_url, fileapi::FileSystemType type);
+GURL GetFileSystemRootURI(const GURL& origin_url, FileSystemType type);
+
+// Returns the name for the filesystem that is specified by a pair of
+// |origin_url| and |type|.
+// (The name itself is neither really significant nor a formal identifier
+// but can be read as the .name field of the returned FileSystem object
+// as a user-friendly name in the javascript layer).
+//
+// Example:
+// The name for a TEMPORARY filesystem of "http://www.example.com:80/"
+// should look like: "http_www.example.host_80:temporary"
+std::string GetFileSystemName(const GURL& origin_url, FileSystemType type);
// Converts FileSystemType |type| to/from the StorageType |storage_type| that
// is used for the unified quota system.
« no previous file with comments | « webkit/fileapi/file_system_url_request_job_unittest.cc ('k') | webkit/fileapi/file_system_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698