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..5651d1fa8e18312825fb74748029c6305e03443c 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 referred as .name field of the returned FileSystem object |
ericu
2012/01/09 18:44:44
s/referred as/read as the/
kinuko
2012/01/10 09:48:53
Done.
|
+// 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. |